An implementation of the board game besieged city with a rust backend and a pyQt GUI, supporting both PVP and PVE.
- 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"},
]- Use git to download source code and enter the directory.
git clone https://github.com/SafetyComputer/Ruspy-City
cd Ruspy-City
.venv/Scripts/activate- Use uv to download necessary python packages.
uv sync- Use maturin to compile rust libraries and convert them to python.packages
maturin develop --release- Use pyinstaller to bundle the python application (Optional).
pyinstaller --onefile game.py