Singleplayer Riichi Mahjong Game
Project description
Riichi Royale
Team "The One Cow" for Fall 2020 Performant Programming in Python
For TAs
Project Description
Riichi Royale is a singleplayer game where you play 4-player Riichi Mahjong against AI opponents. The project includes a tutorial so you can learn how to play and (currently) a demo project in order to showcase our C++ Mahjong Game Manager
Install
pip install riichiroyale
Run Riichi Royale in your command prompt
riichiroyale
Deevelopment
Getting Started
This getting start guide assumes you are running either Arch Linux or Ubuntu (whether standalone or within WSL).
Install the following dependencies:
-
git
-
cmake
-
clang
(or clang-10 if on Ubuntu < 20.04LTS)
Clone the repository:
git clone git@github.com:HartleyAHartley/RiichiRoyale.git
Run the following commands within the project directory:
# Install python dependencies locally
pip install --user -r requirements.txt
# Create build directory for cmake
mkdir build/
# Bootstrap CMake Environment
cmake -S . -B build
# Or bootstrap CMake with tool building enabled
cmake -S . -B build -DPACKAGE_TOOLS=ON
# Or, if wanting to use Clang
C=clang CXX=clang++ cmake -S . -B build
# Build Project
cmake --build build
# Run Project
python setup.py develop --user
python riichiroyale
Testing and Documentation
The python test suite is located in test/
and can be run with python test
The C++ test suite is located in cxxtests/
and can be run with make -C build check
Good Resources
DocDevs Mirror of Pygame Documentation: Standard Pygame API Docs. Pygame has a ratelimiter on their website of 50 visits per hour, which is very annoying while developing.
Pygame Example Projects: Great showing of how everything in pygame pieces together.
Pybind11 Docs: The documentation for pybind11, which is what we use for building the C++ python module.
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.