Representation of Moves
How should a move be represented in the input data?
Move Name Means
1 moveDown fill the blank from above
2 moveUp fill the blank from below
3 moveRight fill the blank from left
4 moveLeft fill the blank from right
0 endMove end of data
Named Constants in Java
final int endMove = 0;
final int moveDown = 1;
final int moveUp = 2;
final int moveRight = 3;
final int moveLeft = 4;
Previous slide
Next slide
Back to first slide
View graphic version