Skip to main content

A Pygame implementation of the Bagh-Chal (Tiger and Goat) board game.

Project description

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:

pip install PlayBaghChal

Usage

Run the game using:

from playbaghchal.PlayGame import TigerGame

# Create an instance of the game and run it
game = TigerGame()
game.run()

OR, Using Command line

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

playbaghchal-2.0.0.tar.gz (5.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

playbaghchal-2.0.0-py3-none-any.whl (27.6 MB view details)

Uploaded Python 3

File details

Details for the file playbaghchal-2.0.0.tar.gz.

File metadata

  • Download URL: playbaghchal-2.0.0.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for playbaghchal-2.0.0.tar.gz
Algorithm Hash digest
SHA256 02c1364fc1ea42131031067e7d9abecf41ba8797dbfcbd60ecf0a84672d16c22
MD5 9df5d1c984e9d188bb765398fc1841fa
BLAKE2b-256 37d5d38ec0f6ffe5d4c49f99661a555368b7f379a00b0a220d62ea1b339c2860

See more details on using hashes here.

File details

Details for the file playbaghchal-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: playbaghchal-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 27.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for playbaghchal-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0de7cae6e84fa73437656872e1b3a93beb66d9d4ee932a87fe081c00a730e9d6
MD5 cd76b9c1dca565216dd06a2c11d1d102
BLAKE2b-256 11e98920d276fce578ffd2f1b33ad256d703e2c89c5c0ed54f4679be6349fac7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page