Metadata-Version: 2.1
Name: WRDice
Version: 0.0.1.17
Summary: Python simulator for war room battles
Home-page: 
Author: theterminator
Author-email: warroom@theterminator.e4ward.com
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: C
Requires-Python: >=3.8.10
Description-Content-Type: text/markdown

# WRDice
Backend for WRBattleSim

## Installation
Using pipy:

```
python -m pip install wrdice
```

## Usage

Units are added for land, air and sea in the color order
> [yellow, blue, green, red, black]

Units are assigned to differnet stances either by their numerical value or -1 to assign all units to a given stance
> stances = [defensive/esocort/anti-air], [offensive/ground]

```python
=======

Units are added for land, air and sea in the color order  
[yellow, blue, green, red, black]  
Units are assigned to differnet stances either by their numerical value or -1 to assign all units to a given stance  
stances = [defensive/esocort/anti-air], [offensive/ground]
```
config = wr20_vaniilla_options
NO_UNITS = [0,0,0,0,0]
ALL_UNITS = [-1,-1,-1,-1,-1]

B = Army(units_land = [3,0,0,0,0], 
         units_air =  [0,0,0,0,0], 
         units_sea =  [0,0,0,0,0],
         options = config)
B.apply_stance(stance_land = [ALL_UNITS,    NO_UNITS],
                stance_air = [NO_UNITS,    ALL_UNITS],
                stance_sea = [NO_UNITS,    ALL_UNITS])


A = Army(units_land = [3,2,0,0,0], 
         units_air =  [0,0,0,0,0], 
         units_sea =  [0,0,0,0,0],
         options = config)

A.apply_stance(stance_land = [NO_UNITS,     ALL_UNITS],
                stance_air = [NO_UNITS,     ALL_UNITS],
                stance_sea = [ALL_UNITS,    NO_UNITS])
```

Build simulation and run with given army setups.

```python
sim = Simulate(None, None)
sim.run(CombatSystem.WarRoomV2, 
                config=config, 
                armyA=A,
                armyB=B)
sim.eval_statistics()
```
