3 ms·
I'm seriously addicted to this game, and wanted to be able to share replays with some similarly affected friends, so I bodged together a replay system that reco
by neotek 13y ago
I'm seriously addicted to this game, and wanted to be able to share replays with some similarly affected friends, so I bodged together a replay system that records moves and tiles as you play and mungs all the numbers together to make a string you can copy and paste.
I'd love to hear suggestions for how to further compress the data, or make the codes look nicer. I also can't figure out why the game no longer works on iOS since I don't know how to debug javascript in mobile Safari.
Anyway, here's an example of a winning replay in 951 moves:
jI6:9F5FF9F9K5F9FMF9F9F9F9FK9[FYZFF99FW]9F9F7JEE9F9F96FYIY6JJJ99FKN5:9:9:[FK9[E6F99F9FFEF9VIKM9F9MNZ>KE99MNOZ6E9>NJ9FUIN;YNWZWN69F99:GF;6FM>N?WNF9VJJ96F9N[[F9:FMVNM5F;FEY:KGKY9FEY:F5F95N:FF9;MOMJJKK_KNEKE9F9V:;FKKGF9F9F9NJKK9NN_:9F6FM9F5K_N^K_?[FMOW^VN6FGIM::F9F9F9F9F9F9VZ=NFEMYVJ[:IEEE[Z[=F[>K=WZNFM[O[G[WVF[JGNFFYO5aPTDA,X)$8P$H,$(0DPP@$@0(@9P(D, 4D4,8((Q8D($ (@0$10,< ,0 04@% D D4 54(40$8@@0( $@<84(4,8 )%@ @,($($0(0 @$ 0(,(1( 8-40@$% 40 0(! $ 4 $ $ !@ 4 0 0$@ 0 @ 0 0 %$0( $!@D(8 P,05 $ 4400$ $($(<,(,($P40$$ 0$@( 40$4(0(-$%)04 , 19@<4<(0 (( $$!04@ 1$!00$0 (%0 0 1 $!$0 $$ 0( $(,,4,<4P4,4 @$0(@$( $ $4 4L9(4,8) P4$!84DL8,<0,MH9,44@00, (88L @(%(,(40$$ $00% 9,8<( 8($,$L(<,,$8$<$, , $04 $0$00$0 00 0, )%0<<$%4$00$4L% 4$A,$,L8$4,,4<<8 (%4$( <,( 4,0@4 $444(A$8-,,$ <4$ 0($,$ $4,)0(< ,(4L4@(@ 8P ,@@(@,4 (,L<84,)(,$0= $$PL(4@00 40(48 L8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