This is a simple implementation of the Tic Tac Toe game using HTML, CSS, and JavaScript. The game allows two players to play against each other or against an AI opponent.
You can access the website at: https://shahir-47.github.io/Tic-Tac-Toe/
To use the Tic Tac Toe game, follow these steps:
- Open the Tic-Tac-Toe in a web browser by clicking here or copy this link:
https://shahir-47.github.io/Tic-Tac-Toe/
and paste it in the address bar of your web browser. - The game will be displayed on the web page.
- Choose the game options, including player names, markers, colors, and opponent type (human or AI).
- Click the "Start Game" button to begin the game.
- Players take turns clicking on the squares of the game board to make their moves.
- The game will indicate the current player's turn and display the result (win, lose, or draw).
- To reset the game, click the "Reset" button.
The project files are organized as follows:
index.html
: The main HTML file that contains the structure of the game.css/normalize.css
: A CSS file that provides consistent styling across different browsers.css/style.css
: A CSS file that defines the styles for the game elements.script.js
: A JavaScript file that handles the game logic and interaction.
The game relies on the following files and resources:
img/icon.svg
: An SVG file used as the game's icon.img/github.svg
: An SVG file used to display the GitHub logo in the footer.font/TicTacToe.ttf
: A TrueType Font file used to display a custom font for the game.
The Tic Tac Toe game is compatible with modern web browsers that support HTML5, CSS3, and ECMAScript 6 (ES6) features.
- Game developed by Shahir Ahmed
- Source code available on GitHub
This project is licensed under the MIT License - see the LICENSE file for details.
For any issues or further information, please refer to the source code repository or contact me at [ahmeds@dickinson.edu].