fungi-game.js
/*
  Below are the 'action functions' - functions through which an external
  controller (user interface, machine learning program etc.) controls the game.
  Each action function returns an 'action response' that can be read by the
  external controller. In order to facilitate communication between the game
  and the controller the responses are stored as static enum values in the
  Game class (see above, before the constructor).
  */
Below are the 'action functions' - functions through which an external
controller (user interface, machine learning program etc.) controls the game.
Each action function returns an 'action response' that can be read by the
external controller. In order to facilitate communication between the game
and the controller the responses are stored as static enum values in the
Game class .
Below are the ' action functions ' - functions through which an external controller ( user interface machine learning program etc . ) controls the game . Each action function returns an ' action response ' that can be read by the external controller . In order to facilitate communication between the game and the controller the responses are stored as static enum values in the Game class .
actionAdvance () {
    this.advanceBoard()
    this.time += 1
    this.gold -= this.advanceCost
    return this.checkLegalMoves()
  }
actionAdvance ( ) { this . advanceBoard ( ) this . time += 1 this . gold -= this . advanceCost return this . checkLegalMoves ( ) }
Below are the 'action functions' - functions through which an external
controller (user interface, machine learning program etc.)
Below are the ' action functions ' - functions through which an external controller ( user interface machine learning program etc . )