Skip to main content

WolfBot

One Night Ultimate Werewolf: AI Edition

By Tyler Yep & Harry Sha

Python 3.9+ Build Status GitHub license codecov DeepSource

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.

Metadata

Release files for wolfbot 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wolfbot 0.0.1
File Size Uploaded Provenance Actions
wolfbot-0.0.1.tar.gz 18.4 kB Without provenance Details for wolfbot-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wolfbot 0.0.1
File Interpreter ABI Platform Actions
wolfbot-0.0.1-py3-none-any.whl Python 3 none any Details for wolfbot-0.0.1-py3-none-any.whl

Total release size: 39.9 kB

Release files / wolfbot-0.0.1.tar.gz

Download URL wolfbot-0.0.1.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
323114797bb0aa5ee3566629f4785a6dc178502cf78bcc831c62de608548bd15
BLAKE2b-256 checksum
How to use checksums
e513abdb50156f1fba44724284e9ee369c8df4d46b66b0fafa65617fba1e5b94
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / wolfbot-0.0.1-py3-none-any.whl

Download URL wolfbot-0.0.1-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85f579ca47b52c00dda2c05fc2f9f7df2a35216d63a8e27cceb4911e17aa153f
BLAKE2b-256 checksum
How to use checksums
8a3f0ff4c3b1cb770a14c27fefb07fd3d6158bfa0e8f616f506cf4d9a26ea36a
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for wolfbot 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page