Module: FEEN::Dumper::Turn

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

Overview

The turn module.

Class Method Summary collapse

Class Method Details

.dump(side_id) ⇒ String

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

Examples:

Dump the number that identify the player who have to play

dump(0) # => "0"

Parameters:

  • side_id (Integer)

    The identifier of the active player.

Returns:

  • (String)

    The number that identify the player who have to play.



13
14
15
# File 'lib/feen/dumper/turn.rb', line 13

def self.dump(side_id)
  String(side_id)
end