edu.lhup.ai.tictactoe
Class PlayerIterator
java.lang.Object
|
+--edu.lhup.ai.tictactoe.PlayerIterator
- All Implemented Interfaces:
- Iterator
- class PlayerIterator
- extends Object
- implements Iterator
Iterates the two player's currenly playing a game of
tic-tac-toe.
This software is for educational purposes only.
- Author:
- Mark Cohen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerIterator
PlayerIterator(Board board)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator
next
public Object next()
- Specified by:
next in interface Iterator
remove
public void remove()
- Specified by:
remove in interface Iterator