Go v0.2.0 Go.Turn

Documentation for Go.Turn

This entity is responsible for saving a turn in the game. It will persists:

  • current_board before the move as fengo string
  • the turn’s move
  • a list of additional actions, eg place/remove stone/s

It will be used to check for superko rule

Summary

Functions

Returns a new turn from a map. Because of enforce_keys, You must pass key/val in the structure constructor

Types

move()
move() :: any
t()
t() :: %Go.Turn{fengo: String.t, move: move, placements: list}

Functions

new(initial_state)

Returns a new turn from a map. Because of enforce_keys, You must pass key/val in the structure constructor