Skip to main content
FVLMoodle
  • Home
  • FVL Moodle
  • FVL Website
  • FVL Student Gmail
  • FVL Filr
  • Skyward
  • More
You are currently using guest access
Log in
Home FVL Moodle FVL Website FVL Student Gmail FVL Filr Skyward
  1. CSP
  2. 1.2.1 Catch A Turtle Game - Leaderboard

1.2.1 Catch A Turtle Game - Leaderboard

Completion requirements
Opened: Tuesday, 1 October 2019, 12:00 AM
Due: Thursday, 3 October 2019, 5:00 PM

Complete Activity 1.2.2 which has you add a Leaderboard to the "Catch a Turtle" game in Python. 

You will add the following functionality to the existing game code:

  • Ask for the player's name before starting the game.
  • Once time is up, check to see if the player is eligible for the leaderboard. This includes multiple steps:
    • Load the current leaderboard data from a text file into a list.
    • Compare the player's score to the scores in the list to see if the player has a score that is greater than or equal to the existing leader scores. If it is:
      • Insert the player's name and score into the leaderboard list in the right position.
      • Save the data from the new leaderboard list to the leaderboard text file, replacing the previous text file content.
    • Display the leaderboard data on the screen.

    Upload the code here.

    You are currently using guest access (Log in)
    Data retention summary
    Get the mobile app
    Powered by Moodle