5
I'd like to start a series of challenges for http://box-256.com/ starting with the first challenge, “BIG SQUARE II”. After this one I'll add another for "CHECKERBOARD" and so on.
Rules:
- Complete the BIG SQAURE II challenge in the Box-256 emulator (either on the website or download the program if you run Windows)
- Post back here a screenshot of your working answer
- You MUST include the code in plain text so that others can easily copy and very it’s operation.
Scoring:
The winner will be the least amount of instructions used (just the instruction calls, either by name or opcode, the arguments to them are not counted as JMP takes one argument but MOD can take three).
I think in the future contests we can add some additional bonus points for use of coding tricks and we could include the argument count too. I wanted to start basic to get the ball rolling.
Winning
I think we should put a stake in the ground and say two weeks from today we announce the winner(s, there maybe be mutliple entries with the same instruction count).
1I'm confused It says BIGSQUARE in the title but you should solve BIGSQUARE2?? – CalculatorFeline – 2016-04-15T01:06:31.310
@CatsAreFluffy Thanks for pointing that out, I have amended the title. It should have been BIG SQUARE II since the first BIG SQUARE challenge is already solved on the box-256 homepage with a very efficient answer. – jwbensley – 2016-04-15T07:33:47.907
How about we score by memory rows? – CalculatorFeline – 2016-04-15T15:20:38.300
Do we have to post a screenshot? – CalculatorFeline – 2016-04-15T19:52:45.540
@CatsAreFluffy - I think we should, reason being is that it shows that you have the correct answer/code without anyone having to run it. Site users may wish to vote on you answer but probably don't want to have to check them all by hand? – jwbensley – 2016-04-17T11:09:21.067
Or enter them in manually. That shouldn't be too hard now, but I definitely wouldn't want to enter 128 bytes of packed data... – CalculatorFeline – 2016-04-17T15:11:16.663
@CatsAreFluffy - I don't understand you most recent comment? – jwbensley – 2016-04-17T15:27:28.990
How else do you solve Mario? – CalculatorFeline – 2016-04-17T15:34:22.910
@CatsAreFluffy You asked about uploading a screen shot and I responded, why are you talking about solving Mario? – jwbensley – 2016-04-17T15:38:42.447
1@jwbensley please can you clairify the scoring. 1) will data lines with no instruction / opcode count towards the score? 2) will overlapping / misaligned code count as the number of instructions they actually execute or the number of lines they occupy? – impomatic – 2016-04-19T10:49:40.270
1@jwbensley 3) does executing empty memory / invalid instructions count towards the score? (e.g. if I leave off the final JMP at the end of the code and let the program execute the unused memory before returning to 00) – impomatic – 2016-04-21T14:21:49.900
All good points, I have opened a Meta question so we can discuss in detail, we need to sort this out if we want to do more Box256 puzzles: http://meta.codegolf.stackexchange.com/questions/9012/how-to-score-box-256-answers
– jwbensley – 2016-04-23T13:07:25.340Isn't the goal to solve it in the fewest cycles? Or should that be if the challenge is fastest-code? – mbomb007 – 2016-04-27T14:40:30.560
As per the link above, put your idea forward on the Meta link! :) – jwbensley – 2016-04-27T21:01:00.610
Please can you clarify the scoring (are we counting data lines as instructions) as the challenge is due to end within the next few hours and I'd like to change my answer if necessary. – impomatic – 2016-04-28T10:26:49.170
Under the rules this question was originally asked, I have marked @orlp's question as "answer" / "winner". Under the meta question regarding scoring Martin Büttner's answer was the most favoured so for future questions I aks I will use that scoring method. – jwbensley – 2016-05-13T07:57:27.877