Homework 2. Due: Monday, February 24, 2003 Submission: Zipped sources and classfiles attached to plain text e-mail to lboloni@cpe.ucf.edu. In the subject write: EEL 5937, HW 2 Two men are collectively charged with a crime and held in separate cells. They have no way to communicate with each other or making any kind of agreement. The two men are told that: (1) if one of them confesses to the crime and the other does not, the confessor will be freed, and the other will be jailed for three years. (2) if both confess to the crime, then each will be jailed for two years. (3) if neither confesses, then they will be jailed for one year. We refer to confessing as defection, and not confessing as cooperation. Task: -implement a agent called Prisoner -receives the question from the Judge containing the question and the name of the opponent -answers "confess" or "not confess" according some strategy -receives a message containing the verdict -implement an agent called Judge -sends the question message to two Prisoner agents. -waits until it receives both answers -displays the verdict visually and sends the verdict to both prisoners. Observations: -Use this homework to try out the techniques which you will use in the project. -I suggest to use the FSM and its viewer to represent the state of the strategies. -Use an Initiator agent to set up your experiment. Extra credit: -Have a set of Prisoner agents > 2. -Try to develop different strategies for cooperation / defection, potentially in using the history of the agent (previous cases of being in the same trial, etc).