Dot-Box
Dot-Box copied to clipboard
Dot-Box is a game where players take turns drawing lines between dots to create boxes. The player who completes the most boxes wins. It's a simple yet strategic game enjoyed by people of all ages.
Dots and Boxes Game - Join our Community on Discord
| Stars | Forks | Issues | Open PRs | Closed PRs |
Tech Stack
- HTML
- CSS
- Javascript
Description đ
- It is a multiplayer game.
- Based on the lines connected, the boxes would be coloured.
- The one with maximum number of boxes would be the winner.
Functionalities đŽ
- It is a multiplayer game.
- The player has to select the lines. The one with the line at the last would fill the connecting boxes.
- The player with the maximum boxes covered would be the winner.
- The size of the board can be adjustable by user.
- Players will switch after every turn. But the player who has filled the last box, will get one extra chance consecutively.
How to play? đšī¸
- User has to click on edge in such a way that it will maximise the number of boxes based on the lines connected and the number of adjacent boxes.
Setup and Installation
To contribute to the Dot-Box repository, follow these steps:
-
Fork the Repository: Click on the "Fork" button on the repository's GitHub page to create a copy of the repository in your GitHub account.
-
Clone the repository: Clone the forked repository to your local machine using the following command in your terminal.
git clone https://github.com/<your-github-username>/Dot-Box -
Go to Dot-Box Folder
cd Dot-Box -
Add a remote upstream:
git remote add upstream https://github.com/ChromeGaming/Dot-Box -
Create a new branch: Create a new branch for your changes. Run the following command in your terminal.
git checkout -b <your-branch-name> -
Make the desired changes: Make the desired changes to the source code. 6. Add your changes: Add your changes to the staging area. Run the following command in your terminal.
git add <File1 changed> <File2 changed> ... -
Commit your changes: Commit your changes with a meaningful commit message. Run the following command in your terminal.
git commit -m "<your-commit-message>" -
Push your changes: Push your changes to your forked repository. Run the following command in your terminal
git push origin <your-branch-name> -
Create a Pull Request: Go to the GitHub page of your forked repository. You should see a prompt to create a pull request (PR). Click on it, compare the changes, and create the PR.
Screenshots đ¸
Before Starting Game
After Winning Game

Working video đš
Watch this tutorial to learn how to play Dots & Boxes effectively!
https://github.com/user-attachments/assets/6bd3d7e5-854d-4460-aef2-90efe3728e22