Class: JustGo::KoRuleViolationError
- Defined in:
- lib/just_go/errors/ko_rule_violation_error.rb
Overview
KoRuleViolationError
A not players turn error with a message
Instance Method Summary collapse
-
#initialize(message = "Move puts board in previous state") ⇒ KoRuleViolationError
constructor
New not players turn errors can be instantiated with.
Constructor Details
#initialize(message = "Move puts board in previous state") ⇒ KoRuleViolationError
New not players turn errors can be instantiated with
Example:
# Instantiates a new KoRuleViolationError
JustGo::KoRuleViolationError.new("Custom Message")
18 19 20 |
# File 'lib/just_go/errors/ko_rule_violation_error.rb', line 18 def initialize(="Move puts board in previous state") super end |