Skip to content

Commit

Permalink
Add basic gameBoard Object
Browse files Browse the repository at this point in the history
  • Loading branch information
xhjayoub committed Sep 15, 2024
1 parent 1cec2be commit ac5b654
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function gameBoard() {
let gameBoardArr = [[],[],[]];
const insertPlayerInput = (player, posArr) => gameBoardArr[posArr[0]][posArr[1]] = player;
const displayGameBoard = () => console.log(gameBoardArr);
return { insertPlayerInput, displayGameBoard };
}

0 comments on commit ac5b654

Please sign in to comment.