Please test all your programs carefully and include all the test cases
with your program. You must have at least 3 tests for each function,
except the ones that produce an image or a
scene. Use check-expect
for testing, except possibly
for images.
This part is due Monday, Sept 29th.
Vote for three cartoons listed here. You will receive a google form for voting. Make sure you are logged in with your morris account to fill in the form.
Exercise 49 in section 4.3.
Important: the world state must be an enumeration of three
strings: "red", "yellow", "green". The function show
should convert it into the picture of the traffic light with that
color lit up (and the other two shown as an outline). The state of the
traffic light changes on every clock tick. You may start the big-bang
with any color.
How to run a world program:
(main
10)
(10 is the number of seconds you want to run
your program for; change this number as needed), press enter.