Test Tube Sort

Game Assets and Code Template

I have created a ZIP archive which contains:

  • Images for test tubes and the different coloured drops.
  • Sound effects for when a drop in placed in a test tube.
  • The starting point for our game

Download the ZIP archive and copy contents in your coderdojo_tramore directory.

Session 1 (Saturday 14 July)

I have no worksheet today so we went nice and slow. The plan is to:

  • Create GUI
  • Setup Level
  • Deal with mouse input
  • Deal with keyboard input
  • Creating game actors.

At end of this session, we got something like test_tube_sort_start_session_2.py

Session 2 (Sunday 20 July)

The plan is to continus the development of our game, the main steps left are:

  • Adding the drops -- we started this last week but I have removed that code so we can do it again this week as it is important to understand.
  • Adding/Removing a drop to/from a test tube
  • Implementing tests --- to control the game logic we need a few tests.
    • Is a tube empty?
    • Is a tube full?
    • Is a tube complete (full and all drops of the same colour)?
    • Is this move valid?
      • To pick up a drop the tube cannot be empty
      • To place a drop the tube cannot be full and the drop colour must match the top drop colour.
    • Are all tubes complete or empty? (in other words is the level solved?)
  • Using mouse click to control movement
  • Using keyboard click to control movement
  • Initialising levels