This Tic Tac Toe game is built using React.js, TypeScript, Ethers.js, and Metamask, with the backend logic deployed on the Ethereum Goerli Testnet. The game includes features such as allowing users to leave the game and join later, earning rewards on winning, and viewing previous game records.
To get started with the Tic Tac Toe game, follow the instructions below:
- Node.js (version >= 16)
- Metamask browser extension
-
Clone the repository to your local machine:
git clone https://github.com/jatinkh25/tic-tac-toe
-
Navigate to the project directory:
cd tic-tac-toe
-
Install the dependencies:
yarn install
-
Start the development server:
yarn dev
-
Open your browser and visit
http://localhost:5173
to access the Tic Tac Toe game. -
Connect Metamask to the Goerli Testnet.
The Tic Tac Toe game includes the following features:
-
Join and Leave: Users can join a game session at any time and leave the game if needed. They can also rejoin later to continue playing.
-
Reward System: Players receive rewards when they win a game.
-
Previous Game Records: Users can view their previous game records, including the results and details of each game played.
The Tic Tac Toe game is built using the following technologies:
- React.js: A JavaScript library for building user interfaces.
- TypeScript: A statically typed superset of JavaScript that adds optional types to the language.
- Ethers.js: A JavaScript library for interacting with Ethereum.
- Metamask: A browser extension that enables users to interact with Ethereum-based applications.
- Ethereum Goerli Testnet: A test network for Ethereum to deploy and test smart contracts.
Contributions to the Tic Tac Toe game are welcome. If you want to contribute, please follow the guidelines outlined in the CONTRIBUTING.md file.
The Tic Tac Toe game is open source and is available under the MIT License. Feel free to modify and use the code according to your needs.