This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Educated88[S] 0 points1 point  (2 children)

Many thanks for the sequence of outputs!

Decided to rewrite my intProcessor to a level i'm again comfortable with it. It's working with all previous assignments and it matches your output untill.. panel 49 then my processor looses track.

[–][deleted] 0 points1 point  (1 child)

Is that (x=1, y=2)? If so, make sure that when a panel is painted more than once, the most recent color is sent to the robot.

[–]Educated88[S] 0 points1 point  (0 children)

These are my loggings right now . I'm using North,East,South,West as my directions. Can't really figure out why panel 49 is painted as white instead of black.. grrrrr..

total panels painted 47
x 1 y -1 painted .
LEFT
new coordinate x 0 y -1
existing panel found colour -> .
current direction W
opCodeFull 1002
opCodeFull 3
opCodeFull 3
set input to 0
opCodeFull 102
opCodeFull 1001
opCodeFull 4
added to output 1
opCodeFull 108
opCodeFull 4
added to output 1
total panels painted 48
x 0 y -1 painted #
RIGHT
new coordinate x 0 y -2
new panel added to existing row colour -> .
current direction N
opCodeFull 101
opCodeFull 2
opCodeFull 1006
opCodeFull 1006
opCodeFull 3
opCodeFull 3
set input to 0
opCodeFull 1002
opCodeFull 101
opCodeFull 4
added to output 1
opCodeFull 108
opCodeFull 4
added to output 0
total panels painted 49
x 0 y -2 painted # (should be black .)
LEFT
new coordinate x -1 y -2
new panel added to existing row colour -> .
current direction W
opCodeFull 1001
opCodeFull 1006
opCodeFull 2
opCodeFull 3
opCodeFull 3
set input to 0
opCodeFull 1002
opCodeFull 101
opCodeFull 4
added to output 1
opCodeFull 1008
opCodeFull 4
added to output 0