Open angrycaptain19 opened 2 weeks ago
@sourcery-ai plan
game.js
to track the win counts for both playerscheckWinner
function to increment the appropriate player's score when they wingame.js
that sets both players' scores back to 0index.html
static/js/game.js
gameState
object for both playershandleMove
function to update scores when a player winsupdateScoreboard
function to display current scoresresetScore
function to reset scores to 0resetGame
function to preserve scores between gamesThis plan was automatically generated. Please review the plan carefully and make any necessary adjustments.
@sourcery-ai develop
@sourcery-ai plan
game.js
to track the running score for both playerscheckWinner
function to trigger score updates when a winner is determinedgames/tictactoe.html
static/js/game.js
gameState
object for both playerscheckWinner
function to increment scores when a player winsresetScore
function to reset the score counters to zeroresetGame
function to preserve scores when resetting the boardstatic/css/style.css
This plan was automatically generated. Please review the plan carefully and make any necessary adjustments.
Instead of only supporting one off games I want to be able to support players playing a series of games against each other and to keep score.
Add in a scoreboard section to the page that tracks how many wins player 1 and player 2 have and update it after each game.
There needs to be a reset score button for the scoreboard that would change the score back to 0-0