edu.lhup.ai.tictactoe
Class MoveIterator

java.lang.Object
  |
  +--edu.lhup.ai.tictactoe.MoveIterator
All Implemented Interfaces:
Iterator

class MoveIterator
extends Object
implements Iterator

Iterates all of the currently legal moves in a tic-tac-toe game

This software is for educational purposes only.

Author:
Mark Cohen

Constructor Summary
MoveIterator(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

MoveIterator

public MoveIterator(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