Dots & Boxes
Dot and Boxes Game
Description: Dot and Boxes is a classic pen-and-paper game where two players take turns connecting dots to form lines. When a player completes a box by forming the fourth side, they score a point and get another turn. The player with the most boxes at the end of the game wins.
Features:
- Single Player: Play against an AI opponent with adjustable difficulty levels.
- Multiplayer: Play against another player on the same device.
- Customizable Grid: Choose the size of the grid (rows and columns) before starting the game.
- Score Tracking: Keep track of each player's score throughout the game.
- Responsive Design: Enjoy the game on various screen sizes, including mobile devices.
How to Play:
- Choose the game mode (Single Player or Multiplayer) from the main menu.
- Adjust the difficulty level for Single Player mode, if applicable.
- Select the grid size (number of rows and columns) for the game board.
- Take turns connecting adjacent dots to form lines.
- When a player completes a box, they score a point and get another turn.
- The game ends when all boxes are filled, and the player with the most boxes wins.
Installation:
- Clone the repository to your local machine:
git clone https://github.com/your-username/dot-and-boxes.git
- Navigate to the project directory:
cd dot-and-boxes
- Install dependencies using npm or yarn:
or
npm install
yarn install
Usage:
- Run the development server:
or
npm start
yarn start
- Open your web browser and navigate to http://localhost:3000 to play the game.
Credits:
- This project is based on the classic Dot and Boxes game.
- Developed using React.js, HTML, and CSS.
Contributing:
- Fork the repository on GitHub.
- Create a new branch for your feature or bug fix.
- Make your changes and ensure tests pass.
- Submit a pull request for review.
License: This project is licensed under the MIT License - see the LICENSE file for details.