User prompt
move the score counters to the top of the screen instead
User prompt
move tilecounttext up 50
User prompt
move tilecounttext up 250
User prompt
move tilecounttext up 50
User prompt
Fix Bug: 'Uncaught ReferenceError: boardStartY is not defined' in this line: 'var boardBottomY = boardStartY + boardHeight;' Line Number: 41
User prompt
move score counters to just below the board, and centre them
User prompt
create a win lose counter at the top of the screen to record stats for the current session
User prompt
Fix Bug: 'TypeError: whiteTileCount.setText is not a function' in this line: 'whiteTileCount.setText(whiteCount.toString());' Line Number: 33
User prompt
Fix Bug: 'TypeError: blackTileCount.setText is not a function' in this line: 'blackTileCount.setText(blackCount.toString());' Line Number: 32
User prompt
Fix Bug: 'Uncaught ReferenceError: blackTileCountText is not defined' in this line: 'blackTileCountText.y = 2732 - blackTileCountText.height - 20;' Line Number: 35
User prompt
Change the score counters to include the graphical assets for the player counters
User prompt
Add "You win!" message to game over screen if black tiles > white tiles
User prompt
when flipping tiles, ensure that valid horizontal, vertical and diagonal tiles are all flipped
User prompt
if player or AI has no valid move, then switch turns unless no player has a valid move then implement game over
User prompt
Add final score to game over screen
User prompt
change game over screen to reflect score, with a win or lose message
User prompt
create a game over screen when there are no more valid moves for either player
User prompt
Add a check to make sure all valid tiles are flipped, including diagonals on each turn
User prompt
add a half second delay on AI moves
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'LK.gui.bottomCenter.addChild(tileCounter);' Line Number: 164
User prompt
Add a tile counter to the bottom of the screen showing how many tiles each player currently has on that turn
User prompt
only flip correct tiles when the AI moves too
===================================================================
--- original.js
+++ change.js
@@ -37,10 +37,10 @@
self.updateCounts = function (blackCount, whiteCount) {
blackTileCountText.setText('Black: ' + blackCount);
whiteTileCountText.setText('White: ' + whiteCount);
};
- blackTileCountText.y = 2732 - blackTileCountText.height - 120;
- whiteTileCountText.y = blackTileCountText.y - 100;
+ blackTileCountText.y = 20;
+ whiteTileCountText.y = 20;
whiteTileCountText.x = 2048 - whiteTileCountText.width - 20;
self.addChild(blackTileCountText);
self.addChild(whiteTileCountText);
});
create a flat, round, black counter. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
create a flat, round, white counter. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
create a flat green square with sharp corners and a very thin darker outline Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.