Skip to content

Editing undefined "self" refrences#21

Open
davidellman29 wants to merge 1 commit intoericdrosado:masterfrom
davidellman29:fix/computer-logic-scope
Open

Editing undefined "self" refrences#21
davidellman29 wants to merge 1 commit intoericdrosado:masterfrom
davidellman29:fix/computer-logic-scope

Conversation

@davidellman29
Copy link
Copy Markdown

@davidellman29 davidellman29 commented Jan 15, 2026

What: Added a restart button feature that allows players to restart the game without reloading the page for both Player vs Player and Player vs Computer game modes.

Why: Players previously had to reload the entire page to start a new game, which provides a poor user experience. A restart button after game completion improves usability and gameplay flow.

Verified: Tested the restart button by checking that it clears the board, resets the game state, and allows new games to start for both game types without page reloads.

Status: Ready for testing and review.

Screenshot 2026-01-22 103059 original webpage. no restart button. dead end of the page until you restart the website. Screenshot 2026-01-22 103357 original code. only a few lines of css. Screenshot 2026-01-22 103432 This shows the code I wrote to set up the game board and handle player moves. Screenshot 2026-01-22 103555 This photo shows the full game logic I wrote, where the computer takes its turn and the code checks for a winner or a tie so I can display the right result on the screen. Screenshot 2026-01-22 104600 finished results. pressing green "restart" button refreshes the page for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant