Skip to content

Instantly share code, notes, and snippets.

@rydemods
rydemods / app.js
Last active March 9, 2023 13:42
pacman
function createGameState() {
const ROWS = 20;
const COLS = 20;
const EMPTY = 0;
const PLAYER = 2;
const PELLET = 1;
const GHOST = 3;
const board = [];
for (let i = 0; i < ROWS; i++) {