Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.09 KB

File metadata and controls

18 lines (15 loc) · 1.09 KB

#0.6

  • Small fix: warn that move has no effect now relies only on position, not on field instance.

#0.5

  • Adding simulator contributed by nosslin579. It is now possible to simulate a game between bots locally.

#0.4

  • Major refactoring to make bots more testable. Client code may need to be updated: ** GameState.Field and GameState.VisibleField are not inner classes of GameState anymore, they are moved to separate files in the same package (pl.joegreen.sergeants.framework.model.{GameState.VisibleField -> VisibleField, GameState.Field -> Field}) Their dependence on parent GameState is now clearly visible in a GameStateFieldContext interface. ** GameState becomes an interface with lots of default methods, does not depend on API responses anymore. Game state class that can be updated with API responses is now called UpdatableGameState ** GameStarted becomes an interface.
  • Added getAttackIndex() to GameState

0.3

  • Fixed #1 (Array index out of bounds exceptions being thrown) - sending leave_game after a game is finished, checking if game update message has expected turn number before applying it.