games

  • Guess My Number

    Guess My Number

    Play a two-player guessing game and discover the clever trick of cutting the choices in half each time.

  • If-Then Games

    If-Then Games

    Play a Simon-Says style game and learn how computers make choices with if, then and else.

  • Keep Going While

    Keep Going While

    Learn the while loop, which repeats until something changes, and build a countdown and a guess-the-number game.

  • Dice, Coins and Fortune Cookies

    Dice, Coins and Fortune Cookies

    Use Python’s random module to roll dice, flip coins, tell fortunes and scatter confetti.

  • Playtesting and Debugging

    Playtesting and Debugging

    Test a game with friends, write down bug reports and track down two sneaky bugs that make a program run…

  • Level Design on Squared Paper

    Level Design on Squared Paper

    Design game levels on squared paper, plan a difficulty curve and learn the rules that make a challenge fair.

  • Lives, Levels and Game Over

    Lives, Levels and Game Over

    Use variables to keep track of lives, levels and score, and see how a game decides when you win or…

  • Choose Your Path

    Choose Your Path

    Write a friendly text adventure where the player’s choices change the story, using functions to keep the code tidy.

  • Dice Race

    Dice Race

    Make Beep and Pixel race to 20 with dice rolls, then test whether going first is really fair.

  • Quiz Master

    Quiz Master

    Build a quiz game that asks questions from a list, checks the answers and keeps a score.

  • Rock, Paper, Scissors

    Rock, Paper, Scissors

    Program a best-of-three Rock, Paper, Scissors match against the computer using random.choice and if statements.

  • Guess the Number

    Guess the Number

    Build a number guessing game in Python with a secret number, a while loop and “too high” and “too low”…