Mercurial > projects > aid
diff trunk/aid/maze/generate.d @ 0:4b2e8e8a633e
Repository setup.
author | revcompgeek |
---|---|
date | Mon, 03 Mar 2008 19:28:10 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trunk/aid/maze/generate.d Mon Mar 03 19:28:10 2008 -0700 @@ -0,0 +1,18 @@ +module ai.maze.generate; + +import tango.math.Random; + +class MazeGenerator { +public: + MazeCell[][] generate(uint w, uint h){ + Random r = Random.shared; + MazeCell[][] maze = new MazeCell[w][h]; + uint x = r.next(w); + uint y = r.next(h); + + } +} + +struct MazeCell { + bool n=true,w=true,s=true,e=true,visited=false; +} \ No newline at end of file