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

Constructor Summary
(package private) PlayerIterator(Board board)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerIterator

PlayerIterator(Board board)
Method Detail

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