EXAPUNKS

EXAPUNKS

View Stats:
Help with Tutorial 3
So I'm probably just missing something really obvious, but I'm on tutorial 3 and I can't seem to test my solution. The buttons are greyed out and the keyboard shortcuts aren't working either. What am I missing?
< >
Showing 1-7 of 7 comments
That means there is a 'compile error', meaning you are missing something in your code which is required, like the variables after a COPY command. Look for red squiggly underline in your code (like you would see for a misspelled word in a typing program) and hover over it and it will tell you what is wrong/missing.

For example, if you just put the command:

COPY

It will fail, because there are variables required after the command, like:

COPY 1 X (copy the value '1' to register 'x')

Thanks so much! Turns out I was trying to name the file after using the MAKE command. Is there a way to do that? I was trying "MAKE 200" but that didn't do it.
Originally posted by Grunkie:
Thanks so much! Turns out I was trying to name the file after using the MAKE command. Is there a way to do that? I was trying "MAKE 200" but that didn't do it.

Nope unfortunately, it's just MAKE. However generally (I believe) the file id will be the same after creation every time, like file 400. If you create multiple files which are alive at the same time they will increment 401, 402..etc. During a test you can make a file, drop it, and then see what the ID is to use.
Okay, got it.

I have another question. In tutorial 4, I seem to figured out how to satisfy the conditions of the puzzle, but it only works for 1 test run. After I delete file 200 and halt my EXA the next test run doesn't complete, it is stuck doing nothing and counting up thousands of cycles. What am I doing wrong here?
https://i.imgur.com/cNafIWB.png Here's an image of my instructions.
You have hard-coded the value 9 as your solution, as opposed to reading the file itself for the value, which may be different. The 100 'test cases' will randomize certain aspects of the scenario, usually the data contained in files, but there are others too (link numbers, passcodes). You need to design the program to be generic (i.e. read the file for the value to solve, instead of hard-coding it).

You can use the arrows next to the Test Case buttons to cycle through the different test cases (or click on the number and type in your own). Take a look at how the data/scenario differs from test case to test case. Sometimes the numbers inside files will be different. Sometimes the amount of values in a file will be different. Sometimes the number of files you need to interact with will be different. You can expand the files in the left to see exactly what is contained inside them, and how they differ between test cases.
Thank you so much! I had no idea it would do that. Some of those files were really long, too. This game is awesome.
< >
Showing 1-7 of 7 comments
Per page: 1530 50