Skip to content

JeremiahRanen7/tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe Game

A simple TicTacToe game built using React.

Description

This project is a basic implementation of the TicTacToe game. It allows two players to take turns marking the spaces in a 3x3 grid with 'X' or 'O'. The game will declare a winner when one player has three marks in a horizontal, vertical, or diagonal row. If no player achieves this and the grid is filled, the game ends in a draw.

image

Features

  • Interactive Board: Click on squares to place 'X' or 'O'.
  • Status Display: Displays the current player's turn and game result (winner or draw).
  • Reset Functionality: Reset the game board to start a new game.

Technologies Used

  • React: Used for building the UI components and managing state.
  • CSS: Styling of the game board and components.

Getting Started

Prerequisites

  • Node.js
  • npm (Node package manager)

Installation

  1. Clone the repository:

    git clone https:/yourusername/tictactoe.git
  2. Navigate to the project directory:

    cd tictactoe
  3. Install the dependencies:

    npm install

Running the Application

To start the development server, run:

npm start

Open http://localhost:3000 in your browser to view the game.

Usage

  • Click on an empty square to place 'X' or 'O'.
  • The game will display the current player's turn and the game's status (winner or draw).
  • To start a new game, click the reset button or refresh the page.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or suggestions.

About

This is a tictactoe game developed using react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published