lib/GameApp.rb
# Presents the player with application options.
Presents the player with application options.
Presents the player with application options .
def main_menu
    display_title
    selection = @@prompt.select("Main Menu (type your selection in terminal):", %w(New\ Game Load\ Game Delete\ Game Leaderboard Exit\ Game),cycle: true)
    case selection
    when "New Game"
      new_game
    when "Load Game"
      load_game
    when "Delete Game"
      delete_game
    when "Leaderboard"
      leader_board
    when "Exit Game"
      exit
    end
  end
def main_menu display_title selection = @@prompt . select ( "Main Menu (type your selection in terminal):" , %w( New\ Game Load\ Game Delete\ Game Leaderboard Exit\ Game ) , cycle : true ) case selection when "New Game" new_game when "Load Game" load_game when "Delete Game" delete_game when "Leaderboard" leader_board when "Exit Game" exit end end
Presents the player with application options.
Presents the player with application options .