diff --git a/debug/debug.php b/debug/debug.php index beb8666..683372b 100644 --- a/debug/debug.php +++ b/debug/debug.php @@ -113,14 +113,14 @@ function readJsonFile($file)
-            
+
diff --git a/src/web/grid.ts b/src/web/grid.ts index f8c77bc..6984601 100644 --- a/src/web/grid.ts +++ b/src/web/grid.ts @@ -16,12 +16,13 @@ export function loadGrid(moveJson) { const drawBoard = (moveJson: MoveData) => { console.log('Loading move JSON', moveJson); + $('.data').html(JSON.stringify(moveJson, null, 4)); const data = initBTData(moveJson.body); const snake = snakes.find(s => s.name == data.you.name); if (snake) { - console.log(data, snake.move(data)); + console.log('Next move', snake.move(data)); } $('.log').html('');