Releases: scottpdo/flocc
Releases · scottpdo/flocc
0.1.0
With 0.1.0, Flocc is officially out of pre-release and is ready for wider usage, with a stable API and wide range of capabilities.
From the perspective of library development, the biggest change of 0.1.0 is the re-implementation of the entire library in TypeScript (strictly-typed superset of JavaScript). 0.1.0 continues to build out unit tests, which, while far from comprehensive, are providing more stability.
For Flocc users, the biggest changes are:
- The addition of
.getAgentAt(x, y)
,.addAgentAt(x, y, agent)
and.removeAgentAt(x, y)
methods ofGridEnvironment
(to differentiate from inheritedEnvironment
methods), and - The addition of a
Vector
class for storing n-dimensional numerical data.
0.0.16
0.0.15
0.0.14
GridEnvironment
s now come instantiated with Cell
s (i.e. Agent
s, empty except for x
and y
values).
This allows for:
- Game of Life: Don't have to populate the grid with agents, just use cells as agents
- Sugarscape: Can have agents on top of cells (will make an example for this)