Kei-K23 / tic-tac-toe-js

Tic-tac-toe game created in HTML, CSS and pure Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic-Tac-Toe Game

This is a simple implementation of the Tic-Tac-Toe game using JavaScript. It allows players to choose between playing against an AI or playing offline against another player. The game board is displayed on the web page, and players take turns making their moves by clicking on the squares.

Gameplay Options

Players can select their preferred gameplay option using radio buttons. The available options are:

  • AI: The player plays against an AI opponent.
  • Offline: Two players can play against each other on the same device.

The chosen gameplay option determines the initial player and the subsequent moves.

Usage

To play the Tic-Tac-Toe game, open the HTML file in a web browser. Select the desired gameplay option and click the grid squares to make your moves. The game will display the winner or a tie and provide an option to restart the game.

Have fun playing Tic-Tac-Toe!

Contributing

Contributions to this project are welcome. If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

About

Tic-tac-toe game created in HTML, CSS and pure Javascript


Languages

Language:JavaScript 63.9%Language:HTML 18.3%Language:CSS 17.8%