Class Board
In: lib/libttc.rb
Parent: Object

The game board

Methods

cache_valid_moves   layout   new   to_s   to_str  

Attributes

centre  [R] 
distance_between  [R] 
positions  [R] 
valid_moves  [R] 

Public Class methods

A laborious procedure to create all the positions and tie them all together

Public Instance methods

Precompute the valid moves for this board, and the distances between each pair of positions

For each position, show its name and what it touches

[Validate]