Skip to content

Commit

Permalink
Add bug info
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Dec 1, 2023
1 parent db3757e commit 5b1bfd1
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,24 @@ All user stories have been tested and approved.


## Bugs
No know bugs.
| **Bug** | **Status** |
| ----------- | ----------- |
| Last box is still clickable when there has been a draw declared. | |
|||
-

### Fixed bugs:
- After draw it only playes with "O".
- I had to reset currentPlayer to "X" after draw.
- Last box is not clickable and crashes the game.
- After debugging it turned out to be the robotosTurn() that was causing problems. I had to create a turn tracker and make robotosTurn if the counter is left than 9.
- Draw function is not working.
- Had to re-write it all and made a new function to call within the checkIfWin().
- When chosen character is picked and moved to game board the size will not change.
- I had to use ` instaead of ".
- Time out to name validation is not working.
- I placed it inside of the displayName() instaed of ouytside.
- Roboto steels turn after a win.
- Remove the playAgain() from checkIfWin().
| **Bug** | **Status** |
| ----------- | ----------- |
|After draw it only playes with "O". | I had to reset currentPlayer to "X" after draw. |
|Last box is not clickable and crashes the game. |After debugging it turned out to be the robotosTurn() that was causing problems. I had to create a turn tracker and make robotosTurn if the counter is left than 9.|
|Draw function is not working. |Had to re-write it all and made a new function to call within the checkIfWin().|
|When chosen character is picked and moved to game board the size will not change.|I had to use ` instaead of ".|
|Time out to name validation is not working. |I placed it inside of the displayName() instaed of ouytside.|
|Roboto steels turn after a win.|Remove the playAgain() from checkIfWin(). |
|Last box needs to be clicked to show draw. |In the isFilled variable I changed from checking if all boxes where filled to check if 8 boxes are filled to be able to check for a draw after 8th turn.|
|Player can click boxes even when it's Robotos turn.|Removed the click eventlistener after the player has clicked an empty box. Then I add the eventlistener again when Roboto has played its turn|
|||

## Deployment
To deploy the site on Github Pages, the following steps were taken:
Expand Down

0 comments on commit 5b1bfd1

Please sign in to comment.