+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 37
General Chat Thread, Bit of Thursday fun..... in General; Originally Posted by sparkeh Slightly different solution for me: https://docs.google.com/open?id=0B8C...0pSNzV3UVpucDA Does that work if you change left for right in ...
  1. #16


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,484
    Thank Post
    867
    Thanked 853 Times in 674 Posts
    Rep Power
    197
    Quote Originally Posted by sparkeh View Post
    Slightly different solution for me: https://docs.google.com/open?id=0B8C...0pSNzV3UVpucDA
    Does that work if you change left for right in both cases?

  2. #17

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    5,110
    Thank Post
    909
    Thanked 1,503 Times in 1,028 Posts
    Blog Entries
    47
    Rep Power
    651
    Quote Originally Posted by sparkeh View Post
    Slightly different solution for me: https://docs.google.com/open?id=0B8C...0pSNzV3UVpucDA
    Oh for... didn't know you could change the "wall ahead" to "wall on the left", I kept having my bloke turn left to check

  3. Thanks to sonofsanta from:

    mac_shinobi (14th June 2012)

  4. #18

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,896
    Thank Post
    3,415
    Thanked 1,081 Times in 997 Posts
    Rep Power
    369
    *** SPOILER *****

    This is how I did it , more then likely a messy way of doing it but it seemed to work

    Repeat While Not wall ahead
    Do Move Forward
    + If not wall to the right then
    turn right
    turn right
    + if not wall to the left then
    turn left
    Move Forward
    Tried to upload a screen grab but wouldn't let me

  5. #19

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,896
    Thank Post
    3,415
    Thanked 1,081 Times in 997 Posts
    Rep Power
    369
    Quote Originally Posted by sparkeh View Post
    Slightly different solution for me: https://docs.google.com/open?id=0B8C...0pSNzV3UVpucDA
    That's a lot more elegant than my solution - sigh * grumble grumble *

    I couldn't get your solution to work but I did get the Else bit ( clicking the plus symbol ) DOH
    Last edited by mac_shinobi; 14th June 2012 at 11:27 AM.

  6. #20


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,484
    Thank Post
    867
    Thanked 853 Times in 674 Posts
    Rep Power
    197
    Quote Originally Posted by sonofsanta View Post
    Oh for... didn't know you could change the "wall ahead" to "wall on the left", I kept having my bloke turn left to check
    Yeah, @OB1 did that

  7. Thanks to tom_newton from:

    mac_shinobi (14th June 2012)

  8. #21

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    5,110
    Thank Post
    909
    Thanked 1,503 Times in 1,028 Posts
    Blog Entries
    47
    Rep Power
    651
    Done it now, so much easier when you know all the commands available to you... *grumble*

    Bit of Thursday fun.....-blocklymaze.png

    Which is pretty much the same as Tom's, but with the evil of a nested if. sparkeh's looks neatest so far, I reckons.

    And no I have not just been doing this all morning although I am clearly out of practice at my algorithms.
    Last edited by sonofsanta; 14th June 2012 at 11:23 AM. Reason: split subject/verb! the horror

  9. #22
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42
    Heres how i did it:

    Repeat forever
    --if not wall ahead
    ----move forward
    ----turn left
    --else
    ----turn right
    --end if
    end do

    I didnt know you can change the wall ahead LOL

  10. Thanks to apeo from:

    mac_shinobi (14th June 2012)

  11. #23
    DT2
    DT2 is offline
    DT2's Avatar
    Join Date
    May 2011
    Location
    Lakeville, Carleton County, New Brunswick
    Posts
    695
    Thank Post
    140
    Thanked 197 Times in 138 Posts
    Rep Power
    74
    Bit of Thursday fun.....-blocklymaze.pngHere's mine... little different but it works....

  12. Thanks to DT2 from:

    mac_shinobi (14th June 2012)

  13. #24
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42
    @DT2 Nice.. Little man goes straight there.

  14. Thanks to apeo from:

    mac_shinobi (14th June 2012)

  15. #25

    TechMonkey's Avatar
    Join Date
    Dec 2005
    Location
    South East
    Posts
    3,300
    Thank Post
    226
    Thanked 412 Times in 305 Posts
    Rep Power
    163
    My issue was I could make a script so he got to the end but hypothetically if the map was reversed he would get caught in the loop. So would these answers still work if you were given a mystery map, especially if you think about the island problem with wall following. Or am I over thinking the problem as usual?

  16. #26


    Join Date
    Jul 2007
    Location
    USA
    Posts
    1,068
    Thank Post
    50
    Thanked 164 Times in 95 Posts
    Rep Power
    144
    Mines a bit like DT2's, just using an extra else if in the original if.

    Bit of Thursday fun.....-blockly.jpg

    Edit, okay its a LOT like DT2's lol
    Last edited by LiamH; 14th June 2012 at 12:52 PM.

  17. #27

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    5,110
    Thank Post
    909
    Thanked 1,503 Times in 1,028 Posts
    Blog Entries
    47
    Rep Power
    651
    Annoyingly this doesn't seem to work in IE8, with or without the Smoothwall, so students can't use it as a ten minute muck about at the end of a lesson - anyone else had problems with that/found a way around it that doesn't involve me pushing a Chrome MSI out especially for this?

  18. #28


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,484
    Thank Post
    867
    Thanked 853 Times in 674 Posts
    Rep Power
    197
    It's a shame there isn't a second "level" as someone pointed out - because some solutions work for certain classes of maze, and some are general. I don't believe any of the simple ones we have created here are fully general (is the left wall follower general for all mazes?) - it would be fun to find out

  19. #29


    Join Date
    Jul 2007
    Location
    USA
    Posts
    1,068
    Thank Post
    50
    Thanked 164 Times in 95 Posts
    Rep Power
    144
    @sonofsanta

    Worked in firefox here, we have a portable network install that the kids used to have a play.

  20. #30

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    5,110
    Thank Post
    909
    Thanked 1,503 Times in 1,028 Posts
    Blog Entries
    47
    Rep Power
    651
    Quote Originally Posted by LiamH View Post
    @sonofsanta

    Worked in firefox here, we have a portable network install that the kids used to have a play.
    Yeah it worked fine in my FireFox, but the rest of the computers around school only have IE, and I'm not going to faff about pushing out new software just for this at the moment - too many more important things to do, unfortunately (not that you'd know from the time I spent playing with this, but still)

    If there's a way of getting it to work in IE8, lovely, if not, it may have to wait for IE9/Chrome in September.

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Bit of fun!!!!!!!!!!!!
    By KWestos in forum General Chat
    Replies: 20
    Last Post: 2nd April 2009, 02:42 PM
  2. A bit of humour for Thursday....
    By tech_guy in forum General Chat
    Replies: 2
    Last Post: 13th November 2008, 10:06 AM
  3. Member 666 - bit of fun
    By beeswax in forum Other Stuff
    Replies: 13
    Last Post: 2nd March 2006, 08:54 AM
  4. Bit of fun - I need an excuse for Monday morning
    By beeswax in forum Other Stuff
    Replies: 14
    Last Post: 27th February 2006, 10:31 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •