A simple maze function

来源:互联网 发布:快捷启动移动数据代码 编辑:程序博客网 时间:2024/04/30 18:40

I use php write a maze function , it based on algorithm of random travel graph .

 

 

 

Then I use jQuery CSS PHP HTML and include the maze function to write a simple maze game:

 

 

 

I debug it in firefox and it works well:

 

this place had a picture,I will upload it a week later

 

Set the maze rows and columns then begin.

Press direction key to move the green point to the red point then you win haha