Welp I need some help DRLFF. I'm in a computer programming class and our lab exercise is to get this little robot through multiple scenerios. Problem is the learning curve on this thing is about 98 degreees and after about 7 hours on the maze I cannot figure it out. Now thats where you come in. First off, I DO NOT want complete solutions as I don't want to be a cheater, but what I do want is advice and hints in the right direction. Anyone up for a challenge willing to help me out? Link:http://nifty.stanford.edu/2010/dodds-picobot/ Where I currently am:(Just copy paste this into the picobot command box after deleting everythign and hit the enter rules.)
Code:
# 0 x*** -> N 0 # if there's nothing to the N, go N # 0 N*** -> X 1 # if N is blocked, switch to state 1
# W=o N=1 E=2 S=3
# --Left(West)Go-if's-------------------------- 0 xxxx -> W 0 0 Nxxx -> W 0 0 xExx -> W 0 0 xxxS -> W 0 0 NExx -> W 0 0 NxxS -> W 0 0 xExS -> W 0 0 NExS -> W 0 # --Left(West)Blocks/switches------------------- 0 xxWx -> X 3 #s 0 NxWx -> X 3 #s 0 xxWS -> X 1 #N 0 NEWx -> X 3 #s 0 xEWx -> X 1 #N 0 NxWS -> X 2 #E 0 xEWS -> X 1 #N
# --Straight(North)Go-if's----------------------- 1 xExx -> N 1 1 xxWx -> N 1 1 xxxS -> N 1 1 xEWx -> N 1 1 xExS -> N 1 1 xxWS -> N 1 1 xEWS -> N 1
# --Straight(North)Blocks/Switches---------------- 1 xxxx -> X 0 #w 1 Nxxx -> X 0 #w 1 NExx -> X 0 #w 1 NxWx -> X 2 #E 1 NxxS -> X 0 #W 1 NEWx -> X 3 #s 1 NExS -> X 0 #W 1 NxWS -> X 2 #e
#--Right(East)Go-if's------------------------------ 2 Nxxx -> X 3 #2 2 xxWx -> E 2 2 xxxS -> E 0 #2 2 NxWx -> E 2 2 NxxS -> E 2 2 xxWS -> E 2 2 NxWS -> E 2
#--Right(East)Blocks/Switches----------------------- 2 xxxx -> X 1 #0? S 2 xExx -> X 3 #s 2 NExx -> X 3 #s 2 xEWx -> X 2 #W ? 2 xExS -> X 1 #N 2 NEWx -> X 3 #s 2 NExS -> X 0 #w 2 xEWS -> X 1 #n
#--Down(South)Go-if's------------------------------- 3 Nxxx -> S 3 3 xExx -> S 3 3 xxWx -> S 3 3 NExx -> S 3 3 NxWx -> S 3 3 xEWx -> S 3 3 NEWx -> S 3
#--Down(South)Blocks/Switches------------------------- #3 Nxxx -> X 3 3 xxxx -> X 3 #e 3 xxxS -> X 0 #e 3 NxxS -> X 0 #w 3 xExS -> X 0 #w 3 xxWS -> X 2 #e 3 NExS -> X 0 #w 3 NxWS -> X 2 #e 3 xEWS -> X 1 #n
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum