South Plantation High School · Procedural Programming with Python

Paladin Number Guess

Download the template · Follow the steps in VS Code · Upload · 30 points

Instructions

The information on this page is not stored. If you start an assignment, you must finish it. This page does not save your progress. Your program is safe in VS Code, but your score on this page disappears if you leave or refresh.

What you are building

You will build a game called Paladin Number Guess. The computer picks a secret number from 1 to 100. The player keeps guessing until they get it. After each guess, the game gives a hint: Too high, Too low, or Very warm. At the end, it shows how many guesses it took and a score.

The template file walks you through 11 short steps. Each step tells you exactly what to type and shows an example. The whole program is about 25 lines of code, so you can finish it in one class period.

What you need

  • Visual Studio Code with the Python extension installed.
  • The template file from this page (you get it after you click Start Assignment).

How it works

  1. Sign in: enter your first name, last name initial, and class period. Click Start Assignment. Your start time is recorded.
  2. Download the template file and open it in VS Code.
  3. Follow the steps in the green comments. Type your code under each YOUR CODE: line. Save and run after every step.
  4. Upload your .py file here. The checklist shows your points for every step. Click Hint on any step for help.
  5. Fix and re-upload as many times as you want.
  6. Submit for your final score. Turn in your score report the way your teacher tells you.

What a finished game looks like

What is your name? Maya Welcome, Maya! I am Captain Clue I am thinking of a number from 1 to 100. Guess a number from 1 to 100: 50 Too high! Guess a number from 1 to 100: 25 Too low! Guess a number from 1 to 100: 40 Too high! Guess a number from 1 to 100: 31 Very warm! You are within 5. Guess a number from 1 to 100: 33 You got it! You found 33 in 5 guesses, Maya! Your score: 20 points

Blue text is what the player types. Your game picks a different secret number every time.

Grading rubric: 30 points

Each step in the template is worth points. The checker reads the structure of your code. Words inside comments or quotes do not count, so deleting the # in front of an example is not enough if the indentation is wrong. Your code is never run on this page.

StepWhat the checker looks forPoints
Total30

Tips for success

Student Information

Reminder: nothing on this page is saved. Once you click Start Assignment, plan to finish before you leave or refresh the page.