Class: JustGo::KoRuleViolationError

Inherits:
Error
  • Object
show all
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

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(message="Move puts board in previous state") 
  super
end