CAS Community   >   Resources   >  

Antmaze
Ant Maze

My "exam" for children attending my Summer school.

Richmond Mathewson

Created by Richmond Mathewson
last edited Jul 14 2017 by Richmond Mathewson


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)

and

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.

Downloaded 75 times.

Download

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.

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

Feedback and Comments


Available when logged in (join via the front page, 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.
Categories: