Class PuzzleMove

java.lang.Object
  extended byPuzzleMove

public class PuzzleMove
extends java.lang.Object

A move in the puzzle game is simply a square. It must be moved to the "blank" location, so the square's location is simply stored as part of the move


Constructor Summary
PuzzleMove(int square)
          Construct a move from a square (presumably in the range of legal values for a puzzle game.)
 
Method Summary
 int getValue()
          Returns the value of this move.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PuzzleMove

public PuzzleMove(int square)
Construct a move from a square (presumably in the range of legal values for a puzzle game.)

Parameters:
square - is the move
Method Detail

getValue

public int getValue()
Returns the value of this move.

Returns:
the move value