Comet64 - My Solutions
Game info
Comet 64 is a programming puzzle game. The year is 1984. All you got is a Comet 64 home computer and the operator's manual it came with.
Disk1
Compare the Pair (7/64)
The Doppelgänger (6/91)
Sum'bitch (7/110)
Disk2
Some Leftovers (9/89)
Reverse Integeering (6/90)
Heads & Tails (16/657)
Big Brother (12/108)
Middle Brother (21/182)
Greatest of Brothers (10/207)
Disk3
Harder Than It Looks (5/100)
Give me a Ballpark (7/52)
Black Jack (11/255)
thelongeststring (13/155)
46temoc (15/553)
46cemot (27/2850)
TODO Optimize
str = input; int = str.length - 1; loop: check int = 0; jump if true: emit; char = str[int]; reg = char; int--; char = str[int]; switch int; int = char; check int > reg; jump if true: swap; switch int; jump to: loop; swap: switch int; char = reg; str[int] = char; int++; switch reg; char = reg; str[int] = char; int = str.length - 1; jump to: loop; emit: output = str;
TODO Comet LXVI (/)
Disk4
Secret Message (13/796)
Root Input (14/1010)
Negative Initiative (10/167)
As Easy as 01 10 11 (17/880)
TODO Binary Transition (/)
No Duplicates! (6/46)
No Duplicates (52/55)
TODO Optimize
loop: int = input; char = int; str = str + char; check input = null; jump if false: loop; char = str[0]; int = char; char = str[1]; reg = char; check reg = int; jump if true: emit; char = str[2]; reg = char; check reg = int; jump if true: emit; char = str[3]; reg = char; check reg = int; jump if true: emit; char = str[4]; reg = char; check reg = int; jump if true: emit; char = str[1]; int = char; char = str[2]; reg = char; check reg = int; jump if true: emit; char = str[3]; reg = char; check reg = int; jump if true: emit; char = str[4]; reg = char; check reg = int; jump if true: emit; char = str[2]; int = char; char = str[3]; reg = char; check reg = int; jump if true: emit; char = str[4]; reg = char; check reg = int; jump if true: emit; char = str[3]; int = char; emit: output = int;
Let's Settle This (14/112)
// paper + rock = paper (len:9) // rock + scissors = rock (len:12) // paper + scissors = scissors (len:13) str = input + input; int = str.length; str = paper; check int = 9; jump if true: emit; str = rock; check int = 12; jump if true: emit; str = scissors; check int = 13; jump if true: emit; str = draw; emit: output = str;