Battlesim

Latest version: v0.3.7

Safety actively analyzes 613777 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.7

Added
- `Composite` class to create armies with. This holds all the meta information for a unit group.
- `Sampling` class. Lightweight replacement for `Distribution`.
- Optional `tqdm` package support with simulate_k method.

Changed
- Significant internal cleaning of `Battle` object.
- Optimisations to `simulate_fast` function have lead to
around 20x speed up using `numba` more efficiently.
- Integration of numpy array with heterogenous aligned data type with numba continued.
- Unit tiling significantly improved using lerp over distance minimizations.

Removed
- `Distribution` class. This was too verbose and has been replaced with `Sampling`.

0.3.6

Added
- Terrains can now be generated using *perlin noise*. This is not only significantly faster for larger maps but generates more attractive background maps.

Changed
- Large-scale internal adjustments, code cleaning, new folders and files
- Latest versions of `numba` allow for heterogeneous matrix dtypes, allowing for code refactoring for jit sections. Significantly cleaner function arguments.
- adjustments as to how `Terrain` is generated.

0.3.5

- `jitcode` for streamlined `numba` use
- Global `target` functions for initialization
- Armor calculations for units
- `example4.ipynb` to reflect changes

Changed
- `__init__` file dependencies
- Removed file requirement for `Battle()`
- `Distribution` constructor now accepts copy-constructor of another Distribution
- Made `Battle` attributes properties to protect them

Removed
- Alternative constructor for `Distribution`

0.3.4

Added
- Integrated terrain background
- Terrain weighting in unit movement calculations

Changed
- Streamlined `Terrain`, `Distribution` into `Battle` object

Removed
- `test_move` test suite

0.3.2

Added
- Teaching material
- General *decision-based AI* with `aggressive` and `hit_and_run` options
- `Terrain` definition
- LICENSE.

Changed
- Size-dependency on quiver-plots to units.
- Streamlined legend
- Memory usage from `M_` object

Removed
- `set_position` in `Battle`

***

Ensure that any use of this material is appropriately referenced and in compliance with the license.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.