Skip to content

A Tic Tac Toe game built using React.js, TypeScript, Ethers.js, and Metamask, with the backend logic deployed on the Ethereum Goerli Testnet.

Notifications You must be signed in to change notification settings

jatinkh25/tic-tac-toe

Repository files navigation

Tic Tac Toe Game

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.

Getting Started

To get started with the Tic Tac Toe game, follow the instructions below:

Prerequisites

  • Node.js (version >= 16)
  • Metamask browser extension

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/jatinkh25/tic-tac-toe
  2. Navigate to the project directory:

    cd tic-tac-toe
  3. Install the dependencies:

    yarn install

Usage

  1. Start the development server:

    yarn dev
  2. Open your browser and visit http://localhost:5173 to access the Tic Tac Toe game.

  3. Connect Metamask to the Goerli Testnet.

Features

The Tic Tac Toe game includes the following features:

  1. 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.

  2. Reward System: Players receive rewards when they win a game.

  3. Previous Game Records: Users can view their previous game records, including the results and details of each game played.

Technologies

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.

Contributing

Contributions to the Tic Tac Toe game are welcome. If you want to contribute, please follow the guidelines outlined in the CONTRIBUTING.md file.

License

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.

About

A Tic Tac Toe game built using React.js, TypeScript, Ethers.js, and Metamask, with the backend logic deployed on the Ethereum Goerli Testnet.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published