Skip to content

About

a python binding for Rusty-City using PyO3

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

47 Commits

Folders and files

Repository files navigation

Introduction:

An implementation of the board game besieged city with a rust backend and a pyQt GUI, supporting both PVP and PVE.

Build:

  1. Configure build settings. If cuda is not required, replace the default setting with the following in pyproject.toml to optimize size of the binarry.
[tool.uv.sources]
torch = [
  { index = "pytorch-cpu"},
]
torchvision = [
  { index = "pytorch-cpu"},
]
  1. Use git to download source code and enter the directory.
git clone https://github.com/SafetyComputer/Ruspy-City
cd Ruspy-City
.venv/Scripts/activate
  1. Use uv to download necessary python packages.
uv sync
  1. Use maturin to compile rust libraries and convert them to python.packages
maturin develop --release
  1. Use pyinstaller to bundle the python application (Optional).
pyinstaller --onefile game.py

About

a python binding for Rusty-City using PyO3

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages