Permalink
Browse files

update readme

  • Loading branch information...
1 parent c3d3bdc commit c51f479f20781539a6ec86ab6a0fe6d46d804bf1 @liweinan committed Mar 24, 2013
Showing with 59 additions and 52 deletions.
  1. +58 −0 README.md
  2. +0 −13 src/main/java/io/App.java
  3. +1 −1 src/main/java/io/maze/PlayMaze.java
  4. +0 −38 src/test/java/io/AppTest.java
View
@@ -27,4 +27,62 @@ Here is the result:
+---+---+---+---+ +
+Now we try to generate a big one:
+
+ Maze maze = MazeFactory.createMaze(25, 25);
+ maze.print();
+
+Result:
+
+ +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+ > | | | | | | |
+ + + +---+ + +---+---+---+ +---+ + +---+---+---+---+---+---+---+ + + + + + +
+ | | | | | | | | | | | | | | |
+ +---+---+ + +---+---+ +---+---+ +---+---+ +---+ +---+ + + +---+ +---+---+ + +
+ | | | | | | | | | | | | | |
+ + + + +---+---+ + + + +---+---+ +---+---+ + +---+ +---+ + + + +---+ +
+ | | | | | | | | | | | | | |
+ + +---+---+---+---+---+ + +---+---+---+---+ + +---+---+---+ + +---+---+ + + + +
+ | | | | | | | | | | | | |
+ +---+---+---+---+---+ + + + +---+ + +---+---+---+---+ + + + +---+---+ +---+ +
+ | | | | | | | | | | | | | | |
+ + +---+---+ +---+---+---+ +---+ + + + +---+ + + + + + + +---+---+ + +
+ | | | | | | | | | | | | | | | |
+ + + +---+---+ + + + + +---+ + + +---+---+ + + +---+---+---+ + +---+ +
+ | | | | | | | | | | | | | | | | | | |
+ + +---+---+---+---+ + + + + + + + + + + + + +---+ + + +---+ + +
+ | | | | | | | | | | | | | | | | |
+ +---+---+ +---+---+---+ +---+---+ + + +---+ +---+ + +---+ +---+ + + +---+ +
+ | | | | | | | | | | | | | | | | |
+ + +---+---+---+---+ + + + +---+ + + +---+ +---+ + +---+ + + + + + +
+ | | | | | | | | | | | | | | | |
+ + + + + + +---+---+---+ + + +---+---+ +---+ +---+---+ + +---+---+---+ + +
+ | | | | | | | | | | | | |
+ + + + + +---+---+---+ +---+---+---+---+ + +---+ + +---+---+---+---+ +---+ + +
+ | | | | | | | | | | | | | |
+ + + + +---+---+ + + + + + +---+---+ + + +---+---+ + +---+---+ +---+ +
+ | | | | | | | | | | | | | | | | |
+ + + +---+ + +---+ +---+ + +---+ + +---+ +---+---+ + +---+---+ +---+ +---+
+ | | | | | | | | | | | | | |
+ +---+---+ +---+---+ +---+---+---+---+---+---+ + +---+ + + +---+---+ + + +---+ +
+ | | | | | | | | | | | | |
+ + + +---+ +---+ + +---+---+---+---+---+---+ +---+---+ + +---+ + +---+---+ + +
+ | | | | | | | | | | | |
+ + +---+---+---+ +---+---+ + + + +---+ +---+---+ +---+---+---+ +---+ + +---+ +
+ | | | | | | | | | | | | | |
+ + + + +---+---+ + +---+ +---+---+ +---+ + +---+---+---+ +---+ +---+ + +---+
+ | | | | | | | | | | | | | |
+ + +---+---+ + +---+---+---+---+ +---+---+ + +---+ + +---+ + +---+ +---+---+ +
+ | | | | | | | | | | | | | | | |
+ + +---+ + +---+ + +---+ + + + +---+ + + +---+ + + + +---+ + + +
+ | | | | | | | | | | | | | | | | | |
+ + +---+ + + + +---+---+---+ +---+---+---+ + + + +---+---+ + + +---+---+---+
+ | | | | | | | | | | | |
+ + + +---+ +---+---+---+---+ +---+---+---+ + + +---+---+---+ +---+---+ +---+---+ +
+ | | | | | | | | | | |
+ + + + +---+ + +---+---+---+ +---+ +---+---+ + +---+ +---+---+ +---+---+---+ +
+ | | | | | | | | | | | | | |
+ + +---+---+ +---+---+ +---+---+---+ +---+---+---+ +---+ +---+ + +---+ + + + +
+ | | | | | | V |
+ +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ +
View
@@ -1,13 +0,0 @@
-package io;
-
-/**
- * Hello world!
- *
- */
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
- }
-}
@@ -13,7 +13,7 @@
public class PlayMaze {
public static final void main(String[] args) {
- Maze maze = MazeFactory.createMaze(5, 5);
+ Maze maze = MazeFactory.createMaze(3, 3);
maze.print();
}
}
@@ -1,38 +0,0 @@
-package io;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest
- extends TestCase
-{
- /**
- * Create the test case
- *
- * @param testName name of the test case
- */
- public AppTest( String testName )
- {
- super( testName );
- }
-
- /**
- * @return the suite of tests being tested
- */
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
- }
-
- /**
- * Rigourous Test :-)
- */
- public void testApp()
- {
- assertTrue( true );
- }
-}

0 comments on commit c51f479

Please sign in to comment.