An open API service indexing awesome lists of open source software.

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

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.