Skip to content

A simple Tic Tac Toe app made for two players or for one player playing vs bot. It can be played online via your browser. Some of the features are: sound on sign placement, scoreboard, clear the board and reset buttons. Made using HTML, CSS and JavaScript.

Notifications You must be signed in to change notification settings

AmarPivcic/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A simple Tic Tac Toe game that you can play online, featuring both Player vs. Player (PvP) and Player vs. Bot (PvBot) modes. It's a two-player classic game where one player is 'X' and the other is 'O.' The game board consists of a 3x3 grid, and the goal is to be the first to get three of your symbols in a row, either horizontally, vertically, or diagonally.

In PvP mode, two players take turns placing their symbols on the grid.
In PvBot mode, you compete against an intelligent AI agent that uses the Minimax algorithm to make optimal moves, providing a challenging experience.

The app includes a clean interface and smooth gameplay, making it enjoyable on any device with a modern web browser.

How to Use

  • At the start of the game, choose between PvP and PvBot mode.
  • Once a mode is selected, the game board and controls will appear.
  • Click or tap on a box in the grid to place your symbol.
    • In PvP mode, players take turns manually.
    • In PvBot mode, you play as 'X' while the AI plays as 'O.' The bot's move is slightly delayed for a more realistic experience.
  • Click the Clear button to reset the grid during or after a game.
  • Click the Reset button to clear the grid and reset the scoreboard.

Features

  • Player vs. Player Mode: Traditional Tic Tac Toe gameplay.
  • Player vs. Bot Mode: Test your skills against an AI using the Minimax algorithm.
  • Score Tracking: Keep track of wins for both players.
  • Clean and Responsive Interface: Works seamlessly on desktops, tablets, and mobile devices.

Viewing the Project

To view the website live and explore its features, visit the following link:
https://amarpivcic.github.io/TicTacToe/

Contact

If you have any feedback or questions about this or other projects, feel free to contact me.

About

A simple Tic Tac Toe app made for two players or for one player playing vs bot. It can be played online via your browser. Some of the features are: sound on sign placement, scoreboard, clear the board and reset buttons. Made using HTML, CSS and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published