https://github.com/nda17/tic-tac-toe-game
Tic-tac-toe-game
https://github.com/nda17/tic-tac-toe-game
css html javascript
Last synced: 3 months ago
JSON representation
Tic-tac-toe-game
- Host: GitHub
- URL: https://github.com/nda17/tic-tac-toe-game
- Owner: nda17
- Created: 2022-12-03T19:17:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T01:59:05.000Z (10 months ago)
- Last Synced: 2025-01-09T10:24:35.173Z (5 months ago)
- Topics: css, html, javascript
- Language: JavaScript
- Homepage: https://nda17.github.io/Tic-tac-toe_game/
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# _Tic-tac-toe-game_
## [Link to page](https://nda17.github.io/Tic-tac-toe_game/)
## _Used stack:_
- [x] HTML
- [x] CSS
- [x] Javascript vanilla## _Game mechanics:_
- When the page loads, the startGame function is called. The function determines who goes first, then the playing field is created and drawn.
- When the player clicks on the playing field, the click function is called. The player's mark is placed in this field, and the field is drawn on the screen.
- There is a check to see if the player has won. If you win, then the winner’s congratulations appear, and if not yet, the turn is transferred to the next player.