Life.Console (life v0.1.0) View Source
This module is one way to create a rather basic example of an interface for the Life.GameServer module.
Link to this section Summary
Functions
Calls Live.GameServer.run_game/3
in a loop for the specified amount of iterations
.
Each iteration pauses for the amount of milliseconds specified by refresh_rate
.
Required function that is called in Live.GameServer.run_game/3
In this case, this function handles displaying the grid of cells in IEx
Ends with a call to GameServer.get_next_generation/1
Link to this section Functions
Calls Live.GameServer.run_game/3
in a loop for the specified amount of iterations
.
Each iteration pauses for the amount of milliseconds specified by refresh_rate
.
Always returns a list of tuples as the set of new coordinates for the next generation of live cells.
Required function that is called in Live.GameServer.run_game/3
In this case, this function handles displaying the grid of cells in IEx
Ends with a call to GameServer.get_next_generation/1
Returns a list of tuples as the set of new coordinates for the next generation of live cells.