View Source HanoiWeb.HanoiGameView (Towers of Hanoi v1.0.0)
Supporing functions for the main page rendering controller
Summary
Functions
Renders the demo automode block
Renders the board as a pile of stones
Define the CSS needed to render the stones board
Renders any error messages
Renders the controls for moving stones
Show game instructions
Renders the current move count
Render each individual pile on the board
Renders reset dropdown and button
Render an individual stone in a pile
Functions
Renders the demo automode block
Renders the board as a pile of stones
Define the CSS needed to render the stones board
Renders any error messages
Renders the controls for moving stones
Show game instructions
Renders the current move count
@spec render_pile(list(), pos_integer()) :: String.t()
Render each individual pile on the board
Renders reset dropdown and button
@spec render_stone(integer(), pos_integer()) :: String.t()
Render an individual stone in a pile