Main Page
From CS227B Wiki
Right now, all the action is at Starter Code.
FAQ:
1. How can we get the current state in order to update the PropNet and get it to the next state?
When you call getCurrentState() from your player that is not related to the StateMachine implementation. Your player is a subclass of Gamer which keeps track of that. For the PropNet you need to know that your current state is in the MachineState that gets passed into getNextStates. You need to verify that the MachineState is actually a PropNetMachineState so you can make use of the stuff you add. Also, since you are writing PropNetMachineState it is up to you to make sure it contains the information needed (such as transitions, which you will need to set the values of the input propositions to get the next state).
2. What is the difference between a GdlTerm and a Proposition
A proposition has a single GdlTerm. GdlTerm is just the name of the Proposition and does not affect it. Some propositions may be named something like "anon" if they do not have a sensible corresponding term in the GDL description.
