EXAPUNKS

EXAPUNKS

View Stats:
How are the masses solving Euclid's Pizza?
So just started play - fun little game.

Did Euclid's pizza - approached it with a loop


NOTE Notes added just for this post

NOTE Get your order and move into the room
GRAB 300
LINK 800

MARK LOOP
NOTE We are holding our order. Go to the next word we need and store it
SEEK X
COPY F T

NOTE Switch to the order doc and add our word to the end
DROP
GRAB 200
SEEK 9999
COPY T F

NOTE Grab our order again and continue if not done
DROP
GRAB 300
ADDI X 1 X
TEST X = 5
FJMP LOOP

NOTE cleanup
WIPE
HALT


But with the register juggling in the loop, executed lines are up to 59, way above average. Size is 16 lines, about average - and 1 EXA, which is also average.

It seems average executed lines are about 25 or so. How are people achieving this? All of the internet solutions use two EXAs to achieve many fewer cycles, which is easy enough - but the stats show 1 exa is used in 90% plus solutions. So how are people getting 25 executions, 16 lines of code, and 1 exa, as the typical solution? And if the vast majority of people are doing it this way, why does there not seem to be any of those solutions posted anywhere? Grr! lol
< >
Showing 1-11 of 11 comments
I did it with two EXAs exchanging info via global. Easy-peasy. You could replicate too pretty easily since it is so short but it would end up longer.


EXA #1
GRAB 300 COPY F M COPY F M COPY F M COPY F M COPY F M

EXA #2
LINK 800 GRAB 200 SEEK 9999 COPY M F COPY M F COPY M F COPY M F COPY M F


Also, HALT is not needed at the end of a program. When it hits the end the EXA halts. Saves you a line of code.
DigitalPigeon: Perhaps something like this:


GRAB 300
LINK 800

COPY F X
COPY F T
DROP
GRAB 200
SEEK 9999
COPY X F
COPY T F
DROP

GRAB 300
SEEK 2
COPY F X
COPY F T
DROP
GRAB 200
SEEK 9999
COPY X F
COPY T F
DROP

GRAB 300
SEEK 4
COPY F X
WIPE
GRAB 200
SEEK 9999
COPY X F
The histograms show the best scores in each category regardless of whether or not said best scores were gotten in one solution. So say that I have one solution that has 25 executions with two EXAs and one solution that has 60 executions with one EXA, the histograms will note 25 executions (fastest) and one EXA (fewest EXAs).

You are not supposed to try and get a high score in all three at once, as that is basically impossible. You should view each histogram in isolation.
TheVoiid, I bet that is it exactly. Totally didn't think of doing two values per grab cycle, keeping it to only 3 cycles. That explains a lot. Thanks!
Also, if you are talking the Activity section of the histogram that isn't the number of EXAs, that is how many times you have used LINK or KILL.
Here is not the best, but, perhaps, an interesting solution using one EXA

GRAB 300
REPL WRITER
MARK READER
COPY F M
TEST EOF
FJMP READER
COPY 0 M
JUMP END

MARK WRITER
LINK 800
GRAB 200
SEEK 9999
MARK LOOP
COPY M T
FJMP END
COPY T F
JUMP LOOP

MARK END
I'd have to wait till im off work to post anything relevant about my solution
but i do remember one thing about this mission
i was upset you couldn't switch your order for an extra large, cheese, pepperoni sausage pizza >:(
will not count unless you take ember's specified order with anchovies :o
(at least on test run 1)

Also Nova has the correct way to view leaderboards imo
one person may have 20 EXAs running around and completing something in 10 cycles but really high activity
while another could have 1 EXA taking 200 cycles and have really low activity but high cycles.
Sometimes you can find solutions that are best of all worlds, but others its just not likely.
I'd say as long as 2/3 are average and 1 is anywhere above average you've done a good code.

Personally I like going for size more than anything
smaller code is easier and faster to write and shows proficiency and usually minimizes waste and also more often than not ends up with average or better cycles.

XA
GRAB 300
TEST EOF
SEEK 0
MARK LOOP
COPY F M
ADDI X 1 X
TEST X = 5
FJMP LOOP
WIPE
HALT




XB
LINK 800
GRAB 200
SEEK 9999
MARK LOOP
COPY M F
ADDI X 1 X
TEST X = 5
FJMP LOOP
DROP
HALT

Just a tip for efficiency:

COPY 0 X
MARK LOOP
;DO SOMETHING
ADDI X 1 X
TEST X = 5
FJMP LOOP

Can more efficiently be run as

COPY 5 T
MARK LOOP
;DO SOMETHING
SUBI T 1 T
TJMP LOOP

Only the exact value of 0 in the T-register will be considered "False", and you save yourself a full instruction per loop.

(Also, but this is more of a personal preference. I try to to avoid using HALT altogether. It's often unnecessary as the EXA will usually terminate by itself. Or cause hilarious disruption. Win-win!)
Can't figure out how to finish the mission.


XA
COPY 5 X GRAB 300 MARK LOOP COPY F M SUBI X 1 X TEST X = 0 FJMP LOOP

XB
LINK 800 GRAB 200 SEEK 9999 MARK LOOP COPY M F FJMP LOOP


The whole order gets in the place where it should be BUT the XB won't finishes the loop and waits on COPY M F string...

Wanted to test it with loops, not just running a simple commands like COPY F M (on XA) and COPY M F (on XB) . Is it even possible? :)
@hex not to necro you but xb with

LINK 800
GRAB 200

COPY 5 X
MARK LOOP
SEEK 9999
COPY M F
SUBI X 1 X
TEST X = 0
FJMP LOOP

will get ya there
< >
Showing 1-11 of 11 comments
Per page: 1530 50