class JustGo::Chain
Chain
¶ ↑
A collection of Points with stones of the same chain id
Attributes
points[R]
Public Class Methods
new(points: [])
click to toggle source
# File lib/just_go/chain.rb, line 11 def initialize(points: []) @points = points end
Public Instance Methods
player_number()
click to toggle source
# File lib/just_go/chain.rb, line 19 def player_number points.first.stone.player_number end