|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectPlayer
Bugs
public class Bugs
Bugs is a concrete class extending Player and always defecting
| Constructor Summary | |
|---|---|
Bugs()
Constructor loads an image and sets the name |
|
| Method Summary | |
|---|---|
char |
play(char[] history)
To instantiate a player this method must be implemented. |
| Methods inherited from class Player |
|---|
getImage, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bugs()
| Method Detail |
|---|
public char play(char[] history)
play in class Playerhistory - An array of up to 3 previous plays by my opponent
IS IGNORED
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||