Skip to content

Ludus: An Optimization Framework to Balance Auto Battler Cards, as seen at EAAI 2022

Notifications You must be signed in to change notification settings

nathanielbd/ludus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ludus

(Temporary name.)

Components

Auto-chess

[auto_chess/] defines a simple auto-chess game, where two players select teams of monsters, which then battle each other automatically until one player's monsters are all dead.

Instructions for defining new cards by subclassing Card are in [auto_chess/init.py].

Analysis

[analysis/] defines a generic framework for computing or approximating the Pareto frontier of a deckbuilding game. It includes machinery for using Pathos for multiprocessing to parallelize computation.

Running it

Setup

Install pipenv

pip install pipenv

Install from Pipfile

pipenv install
pipenv install -d # install dev packages

Activate virtual environment

pipenv shell

Dev

Add a dependency to Pipfile

pipenv install <package>

Testing

Phoebe wrote a beautiful test script which will run mypy (the static type checker), pytest (the unit tester), and flake8 (the style checker). Run with:

pipenv run test

About

Ludus: An Optimization Framework to Balance Auto Battler Cards, as seen at EAAI 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages