Python simulator for war room battles
Project description
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]
=======
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()
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.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file WRDice-0.0.1.16.tar.gz.
File metadata
- Download URL: WRDice-0.0.1.16.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46ec97a59ae227b6d67bcffbb52443d4635e5bed5389247b9ae07b143842eb86
|
|
| MD5 |
194a3b003353f5a6b99cdedd3e8bdb0d
|
|
| BLAKE2b-256 |
ab466da4f1e4c0e722b11b6e58964a6a8258b3b5c37a99fb5d6534b6ec1bfe9b
|
File details
Details for the file WRDice-0.0.1.16-py3.10.egg.
File metadata
- Download URL: WRDice-0.0.1.16-py3.10.egg
- Upload date:
- Size: 40.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd824acc88a8f7736b1d0bfe361b7083fbfdd0fe618acb076b59728f70c94db4
|
|
| MD5 |
813c970ce120022d6e73e85d1e3bb3c8
|
|
| BLAKE2b-256 |
de2454464bfb9d0e2b33e023b9da835b8b978902d022fb37ff93da7bd5369a22
|
File details
Details for the file WRDice-0.0.1.16-py3-none-any.whl.
File metadata
- Download URL: WRDice-0.0.1.16-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd220245249c34e0d514d26027334f7a4e52d99b8ee2732cb0dc551e7b6d1d08
|
|
| MD5 |
8e7433cc08d4ac395294322ac6116ec5
|
|
| BLAKE2b-256 |
a7234078ffc5614120b10b4269faf98b5b8dc77d15d6655d775daa20abd60cec
|