Class: Skip

Inherits:
Action show all
Defined in:
lib/software_challenge_client/action.rb

Overview

Ein Aussetzzug. Ist nur erlaubt, sollten keine anderen Züge möglich sei

Instance Method Summary collapse

Methods inherited from Action

#invalid

Constructor Details

#initializeSkip

Returns a new instance of Skip.



128
129
# File 'lib/software_challenge_client/action.rb', line 128

def initialize()
end

Instance Method Details

#==(other) ⇒ Object



135
136
137
# File 'lib/software_challenge_client/action.rb', line 135

def ==(other)
  other.type == type
end

#perform!(_gamestate) ⇒ Object



139
140
141
# File 'lib/software_challenge_client/action.rb', line 139

def perform!(_gamestate)
  # does nothing
end

#typeObject



131
132
133
# File 'lib/software_challenge_client/action.rb', line 131

def type
  :skip
end