Go to file
En Yi af49fb6294 Add README and example rng seed 2019-06-05 13:58:42 +01:00
ai_comp Add resource file, small timing change 2019-06-04 23:48:56 +01:00
resource Add resource file, small timing change 2019-06-04 23:48:56 +01:00
seeds Add README and example rng seed 2019-06-05 13:58:42 +01:00
.gitignore Add README and example rng seed 2019-06-05 13:58:42 +01:00
README.md Add README and example rng seed 2019-06-05 13:58:42 +01:00
cards.py Fix input cleansing and partner reveal 2019-06-05 12:16:29 +01:00
main.py Add commands for autoplay and cheat 2019-06-04 23:38:37 +01:00
players.py Add a partner calling message 2019-06-05 12:32:18 +01:00
requirements.txt First commit 2019-05-04 11:45:21 +01:00
view.py Finish bidding phase 2019-05-05 11:20:46 +01:00

README.md

SingBridge

A python implementation of the Singaporean version of the Bridge Card game.

Requirements

Python 3.6, pygame, signalslot

Installation

  1. Clone this repository
  2. Make a virtual environment (optinal but recommended). Remember to activate it.
  3. Install the required packages from requirements.txt: pip install -r requirements.txt
  4. Run main.py: python main.py

Run Options

When running main.py, you can give options:

python main.py [options]

3 options are availables:

  • -a or --autoplay: To run the game with all bots
  • -va or --view-all: All player cards are revealed
  • -s or --seed followed by a file path: To run the game with a specified RNG seed

An example command:

python main.py -a -s ./seeds/low_point_hand.rng

This command runs the game with all bots and a seed from ./seeds/low_point_hand.rng

Controls

I hope that you know how to play the Singaporean version of Bridge.

Currently, the p key has to be pressed to begin the game. During the game, all inputs are done through the terminal. Instructions on the input format should appear in the terminal.

I'm looking into changing the input to be mouse-based as a separate version.

When closing the game, please be a bit patient. It should close within a second or two. You may also close it via Keyboard Interrupt (i.e. Ctrl+c) in the terminal.

Bugs and Suggestions

Please report any bugs, specifying how the bug can be recreated. The more specific it is, the better.

Suggestions for improvements on the code are welcomed.