• Assignment 3

    Posted by Eric Martin Thursday 23 June 2016, 10:48:30 AM.

    First a technical point. In the script for test 66, I forgot to include "file = open('pieces_J.xml'); coloured_pieces = tg.abc_available_coloured_pieces(file); file.close(); " (thanks to Ilia for pointing it out). Only very few students would be affected by that omission, all the more so that the test can still pass with the current version of the script (it all depends on whether your way of representing coloured_pieces is the same as mine), so it is really not worth running the whole script again for the whole class. If you think you can be affected by this, please send me an email and I will run the command that was supposed to be run for test 66.

    Very few of you have attempted Part 2. I know that the incentive was minimal (it is hard to find the right balance between challenging those of you who want to be challenged with problems that go much beyond the standard expectations, and not penalising the students who are not keen to be challenged). So congratulations to the few of you who gave a try to this question, sometimes successfully for some tests, and no criticism at all to all others, as I can understand that you have a more "pragmatic" way of spending your time. (At least, I am happy I decided to change assignment 2 from "find a solution" as I originally had in mind to "check whether this is a solution"...). Now for those of you who gave a (genuine!) try to part 2 and did not pass any test, the reward is most stingy (at most one mark for the style). I said I would have some simple tests on this part, but as the number of students who attempted it was so small, and as it was not obvious whether for those of you who failed tests 60-70, the program could still pass some simpler tests, I did not design those simpler tests. But if you think your program can pass simple tests, if you have such tests, then please let me know, send me those tests, and I will award bonus marks.

  • Extra lecture on Assignment ...

    Posted by Eric Martin Tuesday 31 May 2016, 06:06:43 PM.

    ... now in Matthews C

  • Assignment 3

    Posted by Eric Martin Monday 30 May 2016, 06:37:11 PM.

    If you have been following the discussions on WebCMS, you know that we will met at the usual place and time tomorrow Tuesday the 31st to discuss the second part of assignment 3 for those interested.

  • Quiz 10 submission

    Posted by Eric Martin Monday 23 May 2016, 10:52:40 PM, last modified Monday 23 May 2016, 11:09:27 PM.

    There is a problem with the submission system. Before it gets fixed (not by me...), please do not send me your submissions by email. You can submit your code using the command

    give cs9021 Quiz10

  • Quiz 10

    Posted by Eric Martin Wednesday 18 May 2016, 11:36:23 AM.

    Just posted new outputs for quiz 10. Thanks to Yishen for having pointed out the issue, please use new version.

  • Test case submission closed

    Posted by Eric Martin Thursday 05 May 2016, 12:36:20 PM.

    We have plenty of test cases now, there are still a few to be added to the ones that have been posted already, and I have to stop this very popular scheme... Thanks to the contributors.

  • Test cases for Assignment 2

    Posted by Eric Martin Wednesday 04 May 2016, 11:13:36 AM, last modified Wednesday 04 May 2016, 10:13:26 PM.

    I have added under the resources for Assignment 2 test cases provided by one of you (bonus mark for him of course...). As it is easy for me to generate more solutions to a given problem, I have complemented his test cases, and will do so for any test cases you send me.

    Recall that the number of pieces is arbitrary (it does not have to be 7), and the colours can differ from those of the initial test cases.

  • Midterm exam

    Posted by Eric Martin Thursday 14 April 2016, 01:34:02 PM, last modified Thursday 14 April 2016, 01:34:20 PM.

    The seating allocation for the midterm exam, to be held on Friday the 22nd of April from 6pm to 8pm, is available at

  • Lecture recordings now available

    Posted by Eric Martin Wednesday 02 March 2016, 09:42:29 AM, last modified Saturday 30 July 2016, 09:27:49 AM.

    Please login to Moddle ( ) and select COMP9021; you will then find Echo360 in the left corner.

  • Labs

    Posted by Eric Martin Wednesday 02 March 2016, 09:41:49 AM.

    A reminder that the Wednesday and Thursday labs start in week 1, that is, on Wednesday 1 and Thursday 2.

  • Welcome to COMP9021

    Posted by Eric Martin Monday 01 February 2016, 10:11:39 PM.

    The course outline is now available.

Back to top

COMP9021 16s1 (Principles of Programming) is powered by WebCMS3
CRICOS Provider No. 00098G