module FEEN::Parser::Turn

The turn module.

Public Class Methods

parse(side_id) click to toggle source

@param side_id [String] The identifier of bottom-side and

top-side.

@example Parse the number that identify the player who have to play

parse("0") # => 0

@return [Integer] The number that identify the player who have to play.

# File lib/feen/parser/turn.rb, line 14
def self.parse(side_id)
  Integer(side_id)
end