Friday, February 20, 2015

The Game of Klotski

Introduction


Klotski is a sliding block puzzle. For a brief explanation of the source code, please visit Teach Yourself Java Programming in 21 Games


Compile and Run

javac *.java
java Main
You will need Block.java, BlockList.java, Board.java, Cell.java and Main.java in the same folder.


Board.java


Cell.java


BlockList.java


Block.java

Main.java

No comments:

Post a Comment