(define checkpoint ('(Campfire)))
I've figured that this line sets the value of a checkpoint variable to 'Campfire', {'checkpoint' : 'Campfire'}. Although what this line ends up doing is returning a single list ['Campfire']. I'm not sure why these quotes are implemented this way, as in past labs and examples, the quote function was shown with a single variable or value.
In this case, I end up having to parse out the value of the single item in the list and then use that value. That's working in some cases and not working in others, so I guess I'm wondering why this is implemented this way in order to figure out if there is a reason to it and then how I should go about using this ['Campfire'] list with a single value.
Any insight on this would be appreciated.
--Austin
--
You received this message because you are subscribed to the Google Groups "cs310" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs310+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Actually it shouldn't save the environment as that in fact will break it, near the end of the text there are the nodes left and right in those you go to the left, get a key, and then use checkpoint to go back to the intersection and use the key on the door to the right. If we restored the entire environment like you say then the key is "lost" and you can never open the door. Look to the fact that the checkpoint is usually changed by define meaning it's a variable and what you really need is the ability to link the edges at run time.
--Quinn Jones
qjo...@mix.wvu.edu