class JustGo::KoRuleViolationError

KoRuleViolationError

A not players turn error with a message

Public Class Methods

new(message="Move puts board in previous state") click to toggle source

New not players turn errors can be instantiated with

@option [String] message

the message to display.

Example:

# Instantiates a new KoRuleViolationError
JustGo::KoRuleViolationError.new("Custom Message")
Calls superclass method JustGo::Error::new
# File lib/just_go/errors/ko_rule_violation_error.rb, line 18
def initialize(message="Move puts board in previous state") 
  super
end