Skip to content
Snippets Groups Projects
Commit cf55278e authored by Jake Dreher's avatar Jake Dreher
Browse files

5 - Fix some logic

parent 8edaa9cc
No related branches found
No related tags found
1 merge request!9Resolve "Define Object for Cell"
......@@ -161,8 +161,8 @@ console.log("Server started.");
for (let game in games) {
setInterval(() => {
for (let conn of games[game].players) {
games[game].gameBoard = gameModule.moveOneStep(games[game].gameBoard);
for (let conn of games[game].players) {
conn.send(
JSON.stringify({ type: "gameBoard", data: games[game].gameBoard }),
);
......
......@@ -154,7 +154,7 @@ module.exports = {
gameBoard[oldY][oldX].direction = 0;
gameBoard[oldY][oldX].next = null;
//console.log(gameBoard);
console.log(gameBoard);
return gameBoard;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment