Module: FEEN::Parser::Turn

Defined in:
lib/feen/parser/turn.rb

Overview

The turn module.

Class Method Summary collapse

Class Method Details

.parse(side_id) ⇒ Integer

Returns The number that identify the player who have to play.

Examples:

Parse the number that identify the player who have to play

parse("0") # => 0


14
15
16
# File 'lib/feen/parser/turn.rb', line 14

def self.parse(side_id)
  Integer(side_id)
end