Sha256: a7c418757955ed97549c0a3552c8bf1a7626915d17084ce00f88644d1a4eb480

Contents?: true

Size: 518 Bytes

Versions: 10

Compression:

Stored size: 518 Bytes

Contents

require 'just_go/errors/error'

module JustGo

  # = KoRuleViolationError
  #
  # A not players turn error with a message
  class KoRuleViolationError < Error

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
just_go-0.1.10 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.9 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.8 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.7 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.6 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.5 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.4 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.3 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.2 lib/just_go/errors/ko_rule_violation_error.rb
just_go-0.1.0 lib/just_go/errors/ko_rule_violation_error.rb