[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Yet another W client ...



Since everybody here seems to be excited about W, I spent some days setting
it up. Really neat stuff, but it needs more client programs. So here's one :-)

This is a small sliding puzzle (inspired by the XPuzzle program, but with no
auto-solving capability).  Usage is

        wpuzzle [-n size] [-f font] [filename]

Either takes a bitmap file (in IMG format) or presents a numbered version.
Sorry, no manual page.

BTW, this was developed using W.
Enjoy,

        Jens.

PS: Torsten, you're free to include this in any subsequent releases.
--
Internet:  jensk@hpbbn.bbn.hp.com  Phone: (0|+49)7031-14-4785 (TELNET 778-4785)
MausNet:   Jens Kilian @ BB        Fax:   (0|+49)7031-14-2049
PGP:       06 04 1C 35 7B DC 1F 26 As the air to a bird, or the sea to a fish,
0x555DA8B5 BB A2 F0 66 77 75 E1 08 so is contempt to the contemptible. [Blake]
---8<---------------------------------------------------------------------8<---
begin 640 wpuzzle.c.gz
M'XL("&^=_#`"`W=P=7IZ;&4N8P#-6GMOVT82_UO^%.,<;%,2Y4A.TJ91[,*7
MN#U?$R6(W;A%SA`H:671X4-'4I;8QA_MOMO-S#Y)R8X#%+@3$IG<QV]G9^>]
M>MS:@A;@Y^+]XH\_(@$=.$T*D07C(KP1,)>-5T$L]@%[\GF8B0F,2@@2^`W&
M42B2`N99>I4%\3Y"*;17Z;S,PJM9`?^!W@\_?`?P3Y'D\$L8A4&BQIS&P97H
M9"*8A,D53!<)+IGBH-K<IQW\>@9PGF9Y(1(X&\]$)C($>;RU];<P&4>+B8"7
M%U$XVI\=.2UY,0G3M::U846(>ZN-"HIJRW2<%%&U:9&$B$9M6X_EKG\R.YBF
M&>A]!;!_^O9G&(5%',R1AV<SY&4D\CPJ(2_2"'<TS=(8EKDH1E?[<EM%.1<3
M,<4!V6)<P)];`(M\EF8%W(BL;]]FDPP!G(9Y%"0B=QN"HC8B7"W#23&K-LT$
M,=QIR\=!4A]';5'(^+>`F_K'ZP_]K:W%>!9DT(K28.+)QVF"6VQN$=5J`\11
M_&(L.69>\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