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

Parameters:

  • side_id (String)

    The identifier of bottom-side and top-side.

Returns:

  • (Integer)

    The number that identify the player who have to play.



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

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