Skip to content

Commit

Permalink
completed implementation of oneiteration for assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarrasch committed Feb 18, 2011
1 parent d26d90a commit 710d037
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Assistant.jr
Expand Up @@ -6,7 +6,9 @@ public class Assistant extends Person {

public Assistant() {
super("Assistant");
Global.assistant = self;
Global.assistant = self;
knowsOnlyTwoLeft = false;

}
public op void onlyTwoLeft();

Expand All @@ -20,8 +22,17 @@ public class Assistant extends Person {

protected void oneIteration()
{
clearAllTables();
JR.nap(Global.assistantNappingTime);
inni void onlyTwoLeft()
{
clearAllTables();
knowsOnlyTwoLeft = true;
}
[] else
{
clearAllTable();
JR.nap(Global.assistantNappingTime);
}

}


Expand Down

0 comments on commit 710d037

Please sign in to comment.