Skip to content

Priyanka-Ray-Choudhury/gamer_21

 
 

Repository files navigation

# Dot and Boxes Game 🎮

![image](https://github.com/TonyStark-47/gamer_21/assets/73957207/a790f078-a87d-4e17-877c-f1d630de9a68)

## 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 grid size (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 🎲
1. Choose the game mode (Single Player or Multiplayer) from the main menu.
2. Adjust the difficulty level for Single Player mode, if applicable.
3. Select the grid size (number of rows and columns).
4. Take turns connecting adjacent dots to form lines.
5. When a player completes a box, they score a point and get another turn.
6. The game ends when all boxes are filled, and the player with the most boxes wins.

## Installation 💻
1. Clone the repository to your local machine:
   ```bash
   git clone https://github.com/shrawani21/gamer_21.git
  1. Navigate to the project directory:
    cd gamer_21
  2. Install dependencies/requirements:
    pip install -r requirements.txt
    or
    pip install pygame
  3. Run the Game:
    python main.py
    This will launch the game!

Credits 📜

  • This project is based on the classic Dot and Boxes game.
  • Developed using Python only.

Contributing 🤝

  1. Fork the repository on GitHub.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and ensure the tests pass.
  4. Submit a pull request for review.

License 📄

About

Dots & Boxes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%