Kenny_Liu's profile入乡随俗PhotosBlogListsMore Tools Help

Blog


    7/11/2006

    孔挖法-随机迷宫算法

        迷宫必须是奇数*奇数,出口在右下角(也可以随即选择一个终结点作为出口)

    1. 确定起始位置
    2. 随即一个方向,延伸两格,检查是否出边界或者是否碰到道路,否:继续2 是:3
    3. 返回上一个点,继续2,如果上一个点是起点,结束

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://killerliu.spaces.live.com/blog/cns!6EF2055BD4ADB55E!230.trak
    Weblogs that reference this entry
    • None