GUI Malfunction?

8 views
Skip to first unread message

Thomas Holdstein

unread,
Nov 28, 2010, 2:47:40 PM11/28/10
to Cornell CS 2110
My partner and I got our code working as far as getting all of the
animals back to the ship. If we have the GUI up our naturalist ends up
back at the ship, still holding the last animals, it appears as though
he never drops them, but from looking at the point total we can see
that when he reaches the ship with the last animal(s) we get the 1000
points for getting all of the animals to the ship. Is this our error
or something we need to worry about? It seems like the GUI may not be
repainting after the last drop for some reason.

Lonnie Princehouse

unread,
Nov 28, 2010, 7:56:12 PM11/28/10
to cornell...@googlegroups.com
You're right, the GUI isn't repainting that last frame because the simulation has ended.  It should print out a victory message on the console.


--
You received this message because you are subscribed to the Google Groups "Cornell CS 2110" group.
To post to this group, send email to cornell...@googlegroups.com.
To unsubscribe from this group, send email to cornell-cs211...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cornell-cs2110?hl=en.


Thomas Holdstein

unread,
Nov 29, 2010, 2:15:41 PM11/29/10
to Cornell CS 2110
On the console it only prints out that it has finished running, the
score, and the number of moves. Is this the victory message?

Thomas Holdstein

unread,
Nov 29, 2010, 2:18:29 PM11/29/10
to Cornell CS 2110
I guess that it isn't as this prints out any time the program
terminates regardless of whether all of the animals are on the boat or
not. We know for a fact that all of our animals are on the boat, but
we certainly aren't getting anything that says "Victory"

Jack Zhou

unread,
Nov 29, 2010, 2:35:46 PM11/29/10
to cornell...@googlegroups.com
It says "Mission Accomplished".

spw54

unread,
Nov 29, 2010, 8:11:41 PM11/29/10
to Cornell CS 2110
It might be because the TriumphException isn't thrown unless moveTo is
called after all the animals are brought back to the ship. Could
someone confirm this? I haven't gotten that far yet.

Lonnie Princehouse

unread,
Nov 29, 2010, 9:16:52 PM11/29/10
to cornell...@googlegroups.com
TriumphException is thrown by dropAll when the last animal is dropped on the ship.

Reply all
Reply to author
Forward
0 new messages