Skip to content

Instantly share code, notes, and snippets.

@slior

slior/game.js Secret

Created November 1, 2020 12:26
Show Gist options
  • Save slior/b021eab70e5df07587923a1ec6dbe82b to your computer and use it in GitHub Desktop.
Save slior/b021eab70e5df07587923a1ec6dbe82b to your computer and use it in GitHub Desktop.
Mancala (0c689644b4dc50a85bb7d246bc45531a403cdf79) - game.js
const CELL_COUNT = 14;
let board = new Board(CELL_COUNT)
function initGame(cnvsELID)
{
drawBoard(initCanvas(cnvsELID));
let cnvs = initCanvas(cnvsELID)
drawBoard(cnvs,CELL_COUNT);
drawBoardState(cnvs,board);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment