Ant Maze

last edited Jul 14 2017 by Richmond Mathewson | Created by Richmond Mathewson | Other contributors:

My "exam" for children attending my Summer school.

So, it’s very nearly the end of our children’s Summer programming courses here in sweltering Bulgaria (43 degrees C, 95% humidity), where the children had 9 hours of BBC BASIC and 12 hours of LiveCode.

The test consists of an unfinished game:

There are 7 green images (food), and the “ant” should consist of a graphic object that can be moved using the arrowKeys on the keyboard to “collect” the food (and as they are collected they should disappear), and this should be marked in the “score” field at the top of the window.

I am attaching both the Template file (for the pupils)


A finished version to:

  1. Show pupils the expected functionality of the end product.

  2. Allow teachers to “cheat” (makes a big difference).

I am also including 2 additional images I chose to use in my solution of the exercise.

You should notice in the script of my solution that I have used one SWITCH statement and a series of IF . . . . THEN statements. Obviously there are a fair few ways of ringing the changes in this respect.


By downloading this resource you agree to the CAS resource guidelines and use it appropriately.

Note: Unless otherwise specified, this resource and all associated files are published here under the Creative Commons Attribution-Share Alike 3.0 Licence. If you wish to use a different license, please state this in the description.

Read our resource guidelines

Feedback and Comments

Available when logged in (sign-up, for free):
  • View 0 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.

This resource has attached files: to access these files, please tick the box below to assent to the license terms

License: The resources on CAS website are under Creative Commons Attribution-Share Alike 3.0 licence unless otherwise specified by the resource creators.

You must confirm that you have read and agree the licence's ToS before you can download the attachments of this resource.

It has been downloaded 72 times.

I have read the licence agreement of this resource and agree to abide by its terms and conditions.