This project is for educational purposes: its current status should represent the student's starting point.
A python3 module that knows Hanabi:
There are many possible tasks:
read the current state of the module,
improve the CheaterAI -- answer the question (still an open question afaik): what is the best possible score, statistically speaking?
add AIs. Some suggestions:
Keep track of scores for all these games/AI. We will want to compare: different AIs on a same deck, or a given AI over a 1000 decks. We will need to see why a certain AI fails on a certain game.
make it workable for up to 5 players.
make it workable from two separate screens (network?)
you may also design a GUI, but be warned that this is a very time-consuming task. I like PySide2. Tkinter is more portable but harder to learn imho.
During the project:
git clone https://github.com/JDGaraudEnsta/hanabi
cd hanabi
git pull
make # pip installs it in the default directory ~/.local
hanabi
# and now you may play
If hanabi
doesn't start (bash: hanabi: command not found
), add this to your ~/.bashrc
:
export PATH=$HOME/.local/bin:$PATH
pip install pyreadline
then the installation:
cd hanabi/src
python3 setup.py install --user