class JustGo::NoLibertiesError

NoLibertiesError

A not players turn error with a message

Public Class Methods

new(message="Point has no liberties") click to toggle source

New not players turn errors can be instantiated with

@option [String] message

the message to display.

Example:

# Instantiates a new NoLibertiesError
JustGo::NoLibertiesError.new("Custom Message")
Calls superclass method JustGo::Error::new
# File lib/just_go/errors/no_liberties_error.rb, line 18
def initialize(message="Point has no liberties") 
  super
end