One Night Ultimate Werewolf: AI Edition
Project description
WolfBot
One Night Ultimate Werewolf: AI Edition
By Tyler Yep & Harry Sha
Introduction
This is an implementation of the popular board game One Night Ultimate Werewolf.
To try it out, run python main.py in the terminal.
(You may need to run pip install -r requirements.txt if you do not have tqdm already installed.)
Constants, along with their use cases, are listed in src/const.py. You can change:
- # of players
- # of center cards
- Which roles are used
- Behavior of AI players on the Werewolf Team / Village Team
Interactive Mode
To play the game yourself as a character, use the -u / --user flag:
python main.py --user
To replay a game, add the -r / --replay flag.
python main.py --user -r
To examine verbose output of a game, use the -l / --log_level flag.
python main.py -l trace
Simulating Games
To simulate many runs of the game, use the -n flag.
python main.py -n 100
For additional information, please check out the GitHub Wiki!
Contributing
All issues and pull requests are much appreciated!
- To start developing, first run
pip install -r requirements-dev.txt. - Next, run 'scripts/install-hooks'.
- To see test coverage scripts and other auto-formatting tools, check out
scripts/run-tests. - To run all tests, run
pytest. - To only run unit tests, run
pytest unit_test. - To only run integration tests, run
pytest integration_test.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wolfbot-0.0.1.tar.gz.
File metadata
- Download URL: wolfbot-0.0.1.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
323114797bb0aa5ee3566629f4785a6dc178502cf78bcc831c62de608548bd15
|
|
| MD5 |
614c8b2fef48f2a8e80361a9a1cec760
|
|
| BLAKE2b-256 |
e513abdb50156f1fba44724284e9ee369c8df4d46b66b0fafa65617fba1e5b94
|
File details
Details for the file wolfbot-0.0.1-py3-none-any.whl.
File metadata
- Download URL: wolfbot-0.0.1-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85f579ca47b52c00dda2c05fc2f9f7df2a35216d63a8e27cceb4911e17aa153f
|
|
| MD5 |
c01870d5cdf1dee6f3e358d96b3afe66
|
|
| BLAKE2b-256 |
8a3f0ff4c3b1cb770a14c27fefb07fd3d6158bfa0e8f616f506cf4d9a26ea36a
|