Turing Complete

Turing Complete

통계 보기:
mellowmonster12 2025년 7월 30일 오후 1시 15분
how to solve the maze??
i'm on the save breaker version, and i can't figure out the maze. i have tried to implement the pseudo code provided but i just end up with the robot going back and forth on the first maze. and i can't really use online solutions because they're all for the normal version where the robot controls differently. help?? (i really want to get to the new symphony architecture, but i can't)
mellowmonster12 님이 마지막으로 수정; 2025년 7월 30일 오후 1시 17분
< >
전체 댓글 3개 중 1~3개 표시 중
wizzard_8 2025년 7월 31일 오전 2시 38분 
Does he reach the door at all? The important point is that you cant walk into the door you have to action command (4) it when facing it. You want to have a subroutine to jump to when you need to check for viewing a door, its difficult to arrange the code to have a single in line door check section, I needed to check in 2 different places. I had the issue of not checking for a door after all previous actions that could necessitate that and got stuck looping the maze walking past the door every time.

Heres my actual code if this helps with any clues

const turnleft 0
const moveforward 1
const turnright 2
const useaction 4
const wall 1
const door 3
door
cp0to2
#cant go forward turn left
label turn
turnleft
cp0toout
#real "start" point, check front
label checkfront
turn
cp0to4
cpinto3
checkdoor
jnz #call checkdoor function
#seeing empty square move onto it
label forward
moveforward
cp0toout
#moved into empty square look left
label checkleft
turnleft
cp0toout
cpinto3
forward
jz
#wall/door on left
turnback
cp0to4
checkdoor
jmpi
#face forward again
label turnback
turnright
cp0toout
cpinto3
checkdoor
jnz #keep turning right until empty
#now empty in front
forward
jmpi
#subroutine to find the door
label checkdoor
cp3to1
sub
cp4to0 #return address
jnz
#TADA!
useaction #important!
cp0toout
wizzard_8 님이 마지막으로 수정; 2025년 7월 31일 오전 2시 40분
mellowmonster12 2025년 7월 31일 오전 8시 04분 
he does not. in fact he gets stuck at the start strip of the first maze. and remember, i'm on the savebreaker version. (i got past it by editing levels.txt) also, starting at the level "symphony counter", the campaign is buggy as heck
mellowmonster12 님이 마지막으로 수정; 2025년 7월 31일 오전 8시 04분
Zentaki 2025년 8월 1일 오후 10시 01분 
the maze should be fine to solve, just fallow the game instruction to the letter to build the machine you need to solve the maze.

Then doing the code strategy of using jumps and labels to be able to create a primitive function i would call them.

So encapsulate with example, function 1, like : label f1
and inside this at the end, close the function with jump to somewhere, usually the place you are going to jump should be right after you call the jump to enter this function.

that way you make your code jump to where it needs and come back to the line after the line it called for the function jump.

anyway, don`t remember now if the maze was using the leg or the overture, it matters not the strategy stays the same.

I could code a way to count the coins and only get out of the maze when have collected all the coins.

So it kind needs to get to the door a second time and in the first time it should look up for how many coins it has and only enter the door if the right amount is correct.
Because the amount of coins are all the same it can easily be done.

Also make use of constants, that will help you to code what you need.

Then what you have to do basically is to focus on functions and create function to each thing you need to get it done. The routine for the walking, you check if there is wall , look to the right or left and walk if you can, essentially the strategy is to fallow one of either sides of the wall, so you make a routine as such the robot will fallow that wall always.
Now inside that you need to make a call to test what you see, if it is a wall you call the next function which will be the nest step of walking, if it see a coin it needs to walk toward it, count that coin in saving it in a register, adding 1 to that specific register designed to be the counter of coins, then jump back to the walking process again.
if it is a door, you need to make a call for a function to verify if you have all the coins, if so you enter the door, if not go back to walking. and that is that.
< >
전체 댓글 3개 중 1~3개 표시 중
페이지당 표시 개수: 1530 50

게시된 날짜: 2025년 7월 30일 오후 1시 15분
게시글: 3