Life.GameServer (life v0.1.0) View Source

This GenServer module contains the basic logic to take in a set of live cells, generate the next generation, and store the next generation as its state.

Link to this section Summary

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

determine_if_next_gen_cell(cell, count, live_cells)

View Source
Link to this function

generate_signals(position)

View Source
Link to this function

get_all_signals(live_cells)

View Source
Link to this function

get_next_generation(live_cells)

View Source

Callback implementation for GenServer.init/1.

Link to this function

run_game(live_cells, refresh_rate, module \\ __MODULE__)

View Source
Link to this function

run_one_game_iteration(live_cells, refresh_rate)

View Source
Link to this function

set_new_state(live_cells)

View Source
Link to this function

will_live(is_alive, num_of_live_neighbors)

View Source