Sha256: dee5ac6afdd800873411c807b8a457c9b4ed46c5c098a3762656225d650485b9
Contents?: true
Size: 358 Bytes
Versions: 10
Compression:
Stored size: 358 Bytes
Contents
require 'forwardable' module JustGo # = Chain # # A collection of Points with stones of the same chain id class Chain extend Forwardable def initialize(points: []) @points = points end attr_reader :points def_delegator :points, :include? def player_number points.first.stone.player_number end end end
Version data entries
10 entries across 10 versions & 1 rubygems