Method: PGN::Game#starting_position

Defined in:
lib/pgn/game.rb

#starting_positionObject



95
96
97
98
99
100
101
# File 'lib/pgn/game.rb', line 95

def starting_position
  @starting_position ||= if initial_fen
                           PGN::FEN.new(initial_fen).to_position
                         else
                           PGN::Position.start
                         end
end