SEI Project 1:
Tic Tac Toe is a fun game played between two people taking in turns to try and place their symbol three spots in a row.
Click Here to see my live project!
- Click the link above.
- Player "X" goes first then player "O".
- Take in turns clicking on the grid.
- First player to have their three of their symbol line up WINS!.
- Restart at anytime or after somebody has won by clicking the restart button. Coming Soon
- Create a 9x9 grid with a header.
- Have the eventListener add text to grid when clicked individually.
- Have the eventListener cycle through "X" & "O" (taking turns) when clicking.
- Winner is awarded from an array of predefined positions for either "X" or "O".
- Winner window is shown once a winner has been awarded.
- Restart button reloads window.
- Scores are kept for each player. ✅
- Add three themes to pick from at any time at the top left corner of screen.
- Restart button doesn't refresh the page it just resets the game board. ✅
- Player chooses symbols before game starts.
I really struggled with making the event handler take it in turns with applying either a "X" or "O", so for a work around until I figured out how to do that, I just made the user cycle through the options with a click. I eventually found help on stack overflow with a similar problem that helped me.
- Restart refreshes the page instead of resetting everything. ✅
- When a player has won the players can still click on blank cells. ✅
- Make prettier.
- Improve code readability.
- Since the whole page resets the scores always reset to 0 ✅
- The last players score updates by one if the game is drawn ✅
- Next game button after winner is awarded. ✅
- Keep scores between players. ✅
- Player chosen symbol.
- Different themes that can be chosen at any time.
https://www.w3schools.com/css/css_align.asp
https://www.w3schools.com/jsref/prop_style_visibility.asp
https://www.markdownguide.org/cheat-sheet/
https://gist.git.generalassemb.ly/kasun/24d22950b4e29cd275f3e62bc77ccaa1
https://stackoverflow.com/questions/29884654/button-that-refreshes-the-page-on-click
https://www.w3schools.com/jsref/met_element_remove.asp
https://stackoverflow.com/questions/56418763/creating-the-perfect-rainbow-gradient-in-css
https://gist.github.com/rxaviers/7360908