PlayBaghChal


NamePlayBaghChal JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/bhishanP/PlayBaghChal
SummaryA Pygame implementation of the Bagh-Chal (Tiger and Goat) board game.
upload_time2025-02-12 14:25:06
maintainerNone
docs_urlNone
authorBhishan Pangeni
requires_python>=3.6
licenseNone
keywords pygame baghchal tiger goat board game
VCS
bugtrack_url
requirements pygame
Travis-CI No Travis.
coveralls test coverage No coveralls.
             # Bagh Chal

Bagh-Chal (Nepali: बाघ चाल), also known as the Tiger Game or Tiger and Goat Game, is a traditional strategy game from Nepal. This will guide you through the game’s rules, setup, and objectives.

## Requirements

- Python > 3.9
- Pygame

## Objective

- **Tigers:** Capture the goats.
- **Goats:** Prevent the tigers from capturing all of them and trap the tigers so they cannot move.

## Board

The board is a 5x5 grid with additional diagonal lines connecting the corners, creating a star-like pattern. The intersections of these lines are the points where pieces can be placed.

## Pieces

- **Tigers:** 4 pieces
- **Goats:** 20 pieces

## Setup

1. **Tigers:** Start on the board in specific locations (typically at the four corners of the board).
2. **Goats:** Start off the board and are introduced into the game one at a time.

## Installation

You can install the game using pip:

```sh
pip install PlayBaghChal
```

## Usage

Run the game using:
```py
from playbaghchal.PlayGame import TigerGame

# Create an instance of the game and run it
game = TigerGame()
game.run()
```
OR, Using Command line


```sh
python -m playbaghchal
```

## Gameplay

### Tigers' Turn

- Tigers can move to any adjacent intersection along the lines (vertically, horizontally, or diagonally).
- Tigers capture goats by jumping over them to an empty spot directly on the other side (similar to a checkers capture).

### Goats' Turn

- Goats are placed on empty intersections, one at a time, until all 20 goats are on the board.
- After all goats are on the board, they can move to an adjacent intersection along the lines.


## Controls

- **Tigers and Goats movement**: Click on a piece and then on a valid position to move.

## Winning the Game

- **Tigers Win:** By capturing 6 goats so that it is impossible to block all tigers.
- **Goats Win:** By trapping all the tigers so they cannot make any legal moves.

## Strategy

- **For Tigers:** Focus on capturing goats efficiently and blocking their movement.
- **For Goats:** Aim to create a formation that limits the movement of tigers and avoid being captured.

## Additional Notes

- The game requires careful planning and strategic thinking from both players.
- The placement of goats can significantly influence the tigers' ability to capture or move.


## License

This project is licensed under the MIT License.

## Contributing

Pull requests are welcome! If you'd like to contribute, feel free to fork the repo and submit a PR.

## Author

Developed by **Bhishan Pangeni**. 🚀
Enjoy your game of Bagh Chal!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bhishanP/PlayBaghChal",
    "name": "PlayBaghChal",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "pygame baghchal tiger goat board game",
    "author": "Bhishan Pangeni",
    "author_email": "bhishanpangeni2003@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4b/ec/449d535a1b3bfeaa7cab23e835db120b689f3b49a1ba08c0dccee590a85f/playbaghchal-1.0.3.tar.gz",
    "platform": null,
    "description": " # Bagh Chal\r\n\r\nBagh-Chal (Nepali: \u092c\u093e\u0918 \u091a\u093e\u0932), also known as the Tiger Game or Tiger and Goat Game, is a traditional strategy game from Nepal. This will guide you through the game\u2019s rules, setup, and objectives.\r\n\r\n## Requirements\r\n\r\n- Python > 3.9\r\n- Pygame\r\n\r\n## Objective\r\n\r\n- **Tigers:** Capture the goats.\r\n- **Goats:** Prevent the tigers from capturing all of them and trap the tigers so they cannot move.\r\n\r\n## Board\r\n\r\nThe board is a 5x5 grid with additional diagonal lines connecting the corners, creating a star-like pattern. The intersections of these lines are the points where pieces can be placed.\r\n\r\n## Pieces\r\n\r\n- **Tigers:** 4 pieces\r\n- **Goats:** 20 pieces\r\n\r\n## Setup\r\n\r\n1. **Tigers:** Start on the board in specific locations (typically at the four corners of the board).\r\n2. **Goats:** Start off the board and are introduced into the game one at a time.\r\n\r\n## Installation\r\n\r\nYou can install the game using pip:\r\n\r\n```sh\r\npip install PlayBaghChal\r\n```\r\n\r\n## Usage\r\n\r\nRun the game using:\r\n```py\r\nfrom playbaghchal.PlayGame import TigerGame\r\n\r\n# Create an instance of the game and run it\r\ngame = TigerGame()\r\ngame.run()\r\n```\r\nOR, Using Command line\r\n\r\n\r\n```sh\r\npython -m playbaghchal\r\n```\r\n\r\n## Gameplay\r\n\r\n### Tigers' Turn\r\n\r\n- Tigers can move to any adjacent intersection along the lines (vertically, horizontally, or diagonally).\r\n- Tigers capture goats by jumping over them to an empty spot directly on the other side (similar to a checkers capture).\r\n\r\n### Goats' Turn\r\n\r\n- Goats are placed on empty intersections, one at a time, until all 20 goats are on the board.\r\n- After all goats are on the board, they can move to an adjacent intersection along the lines.\r\n\r\n\r\n## Controls\r\n\r\n- **Tigers and Goats movement**: Click on a piece and then on a valid position to move.\r\n\r\n## Winning the Game\r\n\r\n- **Tigers Win:** By capturing 6 goats so that it is impossible to block all tigers.\r\n- **Goats Win:** By trapping all the tigers so they cannot make any legal moves.\r\n\r\n## Strategy\r\n\r\n- **For Tigers:** Focus on capturing goats efficiently and blocking their movement.\r\n- **For Goats:** Aim to create a formation that limits the movement of tigers and avoid being captured.\r\n\r\n## Additional Notes\r\n\r\n- The game requires careful planning and strategic thinking from both players.\r\n- The placement of goats can significantly influence the tigers' ability to capture or move.\r\n\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License.\r\n\r\n## Contributing\r\n\r\nPull requests are welcome! If you'd like to contribute, feel free to fork the repo and submit a PR.\r\n\r\n## Author\r\n\r\nDeveloped by **Bhishan Pangeni**. \ud83d\ude80\r\nEnjoy your game of Bagh Chal!\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Pygame implementation of the Bagh-Chal (Tiger and Goat) board game.",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/bhishanP/PlayBaghChal"
    },
    "split_keywords": [
        "pygame",
        "baghchal",
        "tiger",
        "goat",
        "board",
        "game"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2a1e2c95e29f1ae48953e13d41fd72af444c8471443105c9ef5fcdc2aab28808",
                "md5": "09fc9bf8479da152af0a5af0dd579d67",
                "sha256": "fd83cd0dfd5d7b5f832681b7ba4c54fd858fa71c8e408b9e7d5881546e8edc65"
            },
            "downloads": -1,
            "filename": "PlayBaghChal-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "09fc9bf8479da152af0a5af0dd579d67",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 27463173,
            "upload_time": "2025-02-12T14:24:34",
            "upload_time_iso_8601": "2025-02-12T14:24:34.626191Z",
            "url": "https://files.pythonhosted.org/packages/2a/1e/2c95e29f1ae48953e13d41fd72af444c8471443105c9ef5fcdc2aab28808/PlayBaghChal-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4bec449d535a1b3bfeaa7cab23e835db120b689f3b49a1ba08c0dccee590a85f",
                "md5": "208547c223ccd2e4bf52fb4fb4bb9caf",
                "sha256": "6f01be99415fce80febdb042ac1beed9fee41f6a582f3fb56426905b40cc4669"
            },
            "downloads": -1,
            "filename": "playbaghchal-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "208547c223ccd2e4bf52fb4fb4bb9caf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 27463506,
            "upload_time": "2025-02-12T14:25:06",
            "upload_time_iso_8601": "2025-02-12T14:25:06.674595Z",
            "url": "https://files.pythonhosted.org/packages/4b/ec/449d535a1b3bfeaa7cab23e835db120b689f3b49a1ba08c0dccee590a85f/playbaghchal-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-12 14:25:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bhishanP",
    "github_project": "PlayBaghChal",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "pygame",
            "specs": []
        }
    ],
    "lcname": "playbaghchal"
}
        
Elapsed time: 0.39029s