The Maze Game

In this task we have given you a starter program. It is a very simple game where you win if you find a pot of gold in the middle of a maze. Your task is to extend this what the program can do.

The maze

Watch the following video clip to see the starter program in action.

Your task is to extend this starter program to include more challenge and more twists and turns! Perhaps you could add three directions to choose from, or more choices to make.

After you have made some extensions you might like to use the random function. This will make your program more fun as the computer will randomly decide whether the option chosen by the user leads to the pot of gold or to a trap door!

To do this the following information will be useful.

  • import random needs to be added at the top of the program
  • random.randint(1,5) will generate a random number between 1 and 5
  • random.choice(["a","b","c"]) will generate a random choice of either a, b or c