// Place Cat catPos = x: Math.floor(COLS/2), y: Math.floor(ROWS/2) ; grid[catPos.y][catPos.x] = 2;
function catTurn() if (gameOver) return; trap the cat unblocked
The game begins with a cat positioned at the center of a board filled with hexagonal tiles. // Place Cat catPos = x: Math
ctx.fill(); ctx.strokeStyle = '#aaa'; ctx.stroke(); grid[catPos.y][catPos.x] = 2