A simple tic-tac-toe game implemented in JavaScript.
- Open the index.html file in a web browser.
- Upon launching the game, the main menu will appear, allowing you to choose a game mode.
- There are two game modes available:
- PvP (Player vs. Player): Select this mode if you want to play against another player. Click on the "Player vs. Player" button in the main menu to start a game in this mode.
- PvC (Player vs. Computer): Select this mode if you want to play against the computer. Click on the "Player vs. Computer" button in the main menu to start a game in this mode.
- Once you have chosen a game mode, the game will start, and the game board will be displayed on the screen.
- To place your mark (X or O), click on the corresponding tile on the game board.
- The game ends when one player achieves a win (three marks in a horizontal, vertical, or diagonal line) or a tie (all tiles are filled, but there is no winner).
- After the game ends, you can start a new game by clicking the "New Game" button.
index.html
: HTML file that contains the game structure and basic page layout.style.css
: CSS file that defines the game's appearance.script.js
: JavaScript file that contains the game logic.
The project was created by Jan Pabisiak and it is using the MIT License.