[comp.sys.handhelds] PUZZLE for CHIP8

SLSW2@cc.usu.edu (Roger Ivie) (09/20/90)

Here's a UUENCODEd version of the infamous 15 puzzle for CHIP8. The puzzle,
as you doubtless recall, has 15 squares numbered 1 through 15 (in this case,
1 through F) and one hole. You can move the hole about and must put the
pieces in order.

When you first run puzzle, it comes up solved. Thereafter, pressing ENTER
causes the puzzle to have 32 random moves made, effectively randomizing the
puzzle. If 32's not enough for you, just press ENTER again.

You enter moves by using the 4x4 keypad area used by CHIP8. The key's
position in that 4x4 matrix corresponds to the square in that position of
the puzzle matrix. Pushing a key causes the hole to migrate to that 
position. The migration is performed in the order up, down, left, right;
it is not necessary to limit your moves to those rows and columns containing
the hole; you can request that the hole move to any position.

The program does not check to see if you've solved the puzzle, and therefore
nothing special happens when you do except for the warm, fuzzy feeling that
you have beaten it.

It's really simple and I wrote it mainly to familiarize myself with 
CHIP8.

Enjoy.

begin 644 puzzle
M2%!(4#0X+40L*E P  #@; !, &X/H@-@(/!5 . BOB)V(HXB7B)&$A!A &(7
M8P1!$ #NHNCQ'O!E0  2-/ ITC5Q 7(%9 .$$C0 $B)B%W,&$B)D X3B90.%
MTI10 .Y$ P#N9 &$Y"*F$D9D X3B90.%TI10 .Y$  #N9/^$Y"*F$EYD#(3B
M90R%TI10 .Y$  #N9/R$Y"*F$G9D#(3B90R%TI10 .Y$# #N9 2$Y"*F$HZB
MZ/0>\&6BZ/X>\%5@ *+H]![P58Y  .X\ !+2(APBV"(<HOC]'O!EC0  [GS_
MS0\ [GT!8 ^- NV>$MCMH1+B .X! @,$!08'" D*"PP-#@\ #0 ! @0%!@@)
M"@P. P<+#X3D(J82=F0,A.)E#(72E%  [D0, .YD!(3D(J82CJ+H]![P9:+H
M_A[P56  HNCT'O!5CD  [CP $M(B'"+8(ARB^/T>\&6-  #N?/_-#P#N?0%@
E#XT"[9X2V.VA$N( [@$" P0%!@<("0H+# T.#P -  $"! 4&"/_-
 
end
-- 
===============================================================================
Roger Ivie

35 S 300 W
Logan, Ut.  84321
(801) 752-8633
===============================================================================