home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / volume15 / xdmineur / part02 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  58.1 KB

  1. Path: uunet!news.tek.com!master!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v15i053:  xdemineur - another minesweeper game, Part02/03
  5. Message-ID: <4228@master.CNA.TEK.COM>
  6. Date: 18 Jan 93 20:40:07 GMT
  7. Sender: news@master.CNA.TEK.COM
  8. Lines: 1292
  9. Approved: billr@saab.CNA.TEK.COM
  10. Xref: uunet comp.sources.games:1552
  11.  
  12. Submitted-by: baudoin@bertrand.ensta.fr (Marc Baudoin)
  13. Posting-number: Volume 15, Issue 53
  14. Archive-name: xdemineur/Part02
  15. Environment: X11, Xlib
  16.  
  17.  
  18. #! /bin/sh
  19. # This is a shell archive.  Remove anything before this line, then unpack
  20. # it by saving it into a file and typing "sh file".  To overwrite existing
  21. # files, type "sh file -c".  You can also feed this as standard input via
  22. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  23. # will see the following message at the end:
  24. #        "End of archive 2 (of 3)."
  25. # Contents:  Imakefile LISEZMOI Makefile.test bitmaps/bof.bm
  26. #   bitmaps/heureux.bm bitmaps/icone.bm bitmaps/icone_blanc.bm
  27. #   bitmaps/icone_gris.bm bitmaps/joue.bm bitmaps/numero_0.bm
  28. #   bitmaps/numero_1.bm bitmaps/numero_2.bm bitmaps/numero_3.bm
  29. #   bitmaps/numero_4.bm bitmaps/numero_5.bm bitmaps/numero_6.bm
  30. #   bitmaps/numero_7.bm bitmaps/numero_8.bm bitmaps/numero_9.bm
  31. #   bitmaps/reflet_manquee.bm bitmaps/select_blanc.bm
  32. #   bitmaps/select_gris.bm bitmaps/triste.bm demineur.c demineur.h
  33. #   xdemineur.h xdemineur.man
  34. # Wrapped by billr@saab on Mon Jan 18 12:34:57 1993
  35. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  36. if test -f 'Imakefile' -a "${1}" != "-c" ; then 
  37.   echo shar: Will not clobber existing file \"'Imakefile'\"
  38. else
  39. echo shar: Extracting \"'Imakefile'\" \(2744 characters\)
  40. sed "s/^X//" >'Imakefile' <<'END_OF_FILE'
  41. X/**/# ********************************************************************** #
  42. X/**/#                                                                        #
  43. X/**/# xdemineur - Jeu de reflexion sous X, version 1.0                       #
  44. X/**/#                                                                        #
  45. X/**/# Copyright : Marc Baudoin (baudoin@ensta.fr)                            #
  46. X/**/#                                                                        #
  47. X/**/#            |\                                                          #
  48. X/**/#          |\| \                                                         #
  49. X/**/#          |//  )                                                        #
  50. X/**/#        |\ /  /        /\/\_                                            #
  51. X/**/#        |//  /        /. . /                                            #
  52. X/**/#      |\ /  /     ___/    |_                                            #
  53. X/**/#      |//  /     (____/    /_/\_                                        #
  54. X/**/#       |__|      (_____/ __     >                                       #
  55. X/**/#     /| ___  ________ _< \ \__  >                                       #
  56. X/**/#     \|| __\| _|_   _/ \\ \___\/                                        #
  57. X/**/#       | __\____ | |/ _ \\    >                                         #
  58. X/**/#     /||___\_____|___/ \_\\  _>                                         #
  59. X/**/#     \|____           ____ \|                                           #
  60. X/**/#       \   \_________/   /                                              #
  61. X/**/#        \   _    _      /                                               #
  62. X/**/#         \_//   //_____/                                                #
  63. X/**/#           (_   \ (_  _\                                                #
  64. X/**/#             |/\|   \/                                                  #
  65. X/**/#                                                                        #
  66. X/**/# Ecole Nationale Superieure de Techniques Avancees (ENSTA)              #
  67. X/**/# 32, boulevard Victor - 75015 Paris - France                            #
  68. X/**/#                                                                        #
  69. X/**/# Vous avez le droit d'utiliser et de distribuer xdemineur et sa         #
  70. X/**/# documentation pourvu que cette notice de copyright apparaisse sur      #
  71. X/**/# toutes les copies et que vous ne tiriez aucun profit de mon programme. #
  72. X/**/#                                                                        #
  73. X/**/# ********************************************************************** #
  74. X
  75. X
  76. X
  77. XLOCAL_LIBRARIES = $(XLIB)
  78. X
  79. XSRCS = demineur.c xdemineur.c main.c
  80. XOBJS = demineur.o xdemineur.o main.o
  81. X
  82. XComplexProgramTarget(xdemineur)
  83. END_OF_FILE
  84. if test 2744 -ne `wc -c <'Imakefile'`; then
  85.     echo shar: \"'Imakefile'\" unpacked with wrong size!
  86. fi
  87. # end of 'Imakefile'
  88. fi
  89. if test -f 'LISEZMOI' -a "${1}" != "-c" ; then 
  90.   echo shar: Will not clobber existing file \"'LISEZMOI'\"
  91. else
  92. echo shar: Extracting \"'LISEZMOI'\" \(1972 characters\)
  93. sed "s/^X//" >'LISEZMOI' <<'END_OF_FILE'
  94. X                                 xdemineur 1.0
  95. X
  96. X                  Copyright : Marc Baudoin (baudoin@ensta.fr)
  97. X
  98. X                                 |\
  99. X                               |\| \
  100. X                               |//  )
  101. X                             |\ /  /        /\/\_
  102. X                             |//  /        /. . /
  103. X                           |\ /  /     ___/    |_
  104. X                           |//  /     (____/    /_/\_
  105. X                            |__|      (_____/ __     >
  106. X                          /| ___  ________ _< \ \__  >
  107. X                          \|| __\| _|_   _/ \\ \___\/
  108. X                            | __\____ | |/ _ \\    >
  109. X                          /||___\_____|___/ \_\\  _>
  110. X                          \|____           ____ \|
  111. X                            \   \_________/   /
  112. X                             \   _    _      /
  113. X                              \_//   //_____/
  114. X                                (_   \ (_  _\
  115. X                                  |/\|   \/
  116. X
  117. X           Ecole Nationale Superieure de Techniques Avancees (ENSTA)
  118. X                  32, boulevard Victor - 75015 Paris - France
  119. X
  120. X
  121. X
  122. X         Vous avez le droit d'utiliser et de distribuer xdemineur et sa
  123. X       documentation pourvu que cette notice de copyright apparaisse sur
  124. X     toutes les copies et que vous ne tiriez aucun profit de mon programme.
  125. X
  126. X
  127. X
  128. Xxdemineur est un jeu sous X programme uniquement avec Xlib. Il fonctionne
  129. Xsous X11R4 en couleur.
  130. X
  131. Xxdemineur est compose de 3 fichiers de code C et de deux fichiers en-tete, plus
  132. Xtout un tas de bitmaps.
  133. X
  134. XPour le compiler sur votre systeme, il y a deux solutions :
  135. X
  136. X- si vous disposez du programme xmkmf, tapez
  137. X  xmkmf ; make
  138. X  et le programme devrait se compiler normalement.
  139. X
  140. X- sinon, tapez
  141. X  make -f Makefile.test
  142. X  si la compilation ne s'effectue pas normalement, il faut changer quelque
  143. X  chose dans Makefile.test...
  144. X
  145. Xxdemineur fonctionnera parfaitement bien sur HP et Sun.
  146. XJe ne sais pas ce qu'il peut faire sur d'autres systemes.
  147. END_OF_FILE
  148. if test 1972 -ne `wc -c <'LISEZMOI'`; then
  149.     echo shar: \"'LISEZMOI'\" unpacked with wrong size!
  150. fi
  151. # end of 'LISEZMOI'
  152. fi
  153. if test -f 'Makefile.test' -a "${1}" != "-c" ; then 
  154.   echo shar: Will not clobber existing file \"'Makefile.test'\"
  155. else
  156. echo shar: Extracting \"'Makefile.test'\" \(2915 characters\)
  157. sed "s/^X//" >'Makefile.test' <<'END_OF_FILE'
  158. X# ********************************************************************** #
  159. X#                                                                        #
  160. X# xdemineur - Jeu de reflexion sous X, version 1.0                       #
  161. X#                                                                        #
  162. X# Copyright : Marc Baudoin (baudoin@ensta.fr)                            #
  163. X#                                                                        #
  164. X#            |\                                                          #
  165. X#          |\| \                                                         #
  166. X#          |//  )                                                        #
  167. X#        |\ /  /        /\/\_                                            #
  168. X#        |//  /        /. . /                                            #
  169. X#      |\ /  /     ___/    |_                                            #
  170. X#      |//  /     (____/    /_/\_                                        #
  171. X#       |__|      (_____/ __     >                                       #
  172. X#     /| ___  ________ _< \ \__  >                                       #
  173. X#     \|| __\| _|_   _/ \\ \___\/                                        #
  174. X#       | __\____ | |/ _ \\    >                                         #
  175. X#     /||___\_____|___/ \_\\  _>                                         #
  176. X#     \|____           ____ \|                                           #
  177. X#       \   \_________/   /                                              #
  178. X#        \   _    _      /                                               #
  179. X#         \_//   //_____/                                                #
  180. X#           (_   \ (_  _\                                                #
  181. X#             |/\|   \/                                                  #
  182. X#                                                                        #
  183. X# Ecole Nationale Superieure de Techniques Avancees (ENSTA)              #
  184. X# 32, boulevard Victor - 75015 Paris - France                            #
  185. X#                                                                        #
  186. X# Vous avez le droit d'utiliser et de distribuer xdemineur et sa         #
  187. X# documentation pourvu que cette notice de copyright apparaisse sur      #
  188. X# toutes les copies et que vous ne tiriez aucun profit de mon programme. #
  189. X#                                                                        #
  190. X# ********************************************************************** #
  191. X
  192. X
  193. X
  194. X       CC = cc
  195. X COPTIONS = -O
  196. XLDOPTIONS = -L/usr/lib/X11
  197. X
  198. Xxdemineur : demineur.o xdemineur.o main.o
  199. X    $(CC) $(COPTIONS) $(LDOPTIONS) -o xdemineur demineur.o xdemineur.o main.o -lX11
  200. X
  201. Xdemineur.o : demineur.c demineur.h
  202. X    $(CC) $(COPTIONS) -c demineur.c
  203. X
  204. Xxdemineur.o : xdemineur.c demineur.h xdemineur.h bitmaps/*.bm
  205. X    $(CC) $(COPTIONS) -c xdemineur.c
  206. X
  207. Xmain.o : main.c demineur.h xdemineur.h bitmaps/xdemineur.bm
  208. X    $(CC) $(COPTIONS) -c main.c
  209. END_OF_FILE
  210. if test 2915 -ne `wc -c <'Makefile.test'`; then
  211.     echo shar: \"'Makefile.test'\" unpacked with wrong size!
  212. fi
  213. # end of 'Makefile.test'
  214. fi
  215. if test -f 'bitmaps/bof.bm' -a "${1}" != "-c" ; then 
  216.   echo shar: Will not clobber existing file \"'bitmaps/bof.bm'\"
  217. else
  218. echo shar: Extracting \"'bitmaps/bof.bm'\" \(1322 characters\)
  219. sed "s/^X//" >'bitmaps/bof.bm' <<'END_OF_FILE'
  220. X#define bof_width 40
  221. X#define bof_height 40
  222. Xstatic char bof_bits[] = {
  223. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  224. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  225. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
  226. X   0xe0, 0xff, 0x07, 0x00, 0x00, 0xf8, 0xff, 0x1f, 0x00, 0x00, 0xfc, 0xff,
  227. X   0x3f, 0x00, 0x00, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00,
  228. X   0x00, 0xff, 0xff, 0xff, 0x00, 0x80, 0x3f, 0xff, 0xfc, 0x01, 0x80, 0x1f,
  229. X   0x7e, 0xf8, 0x01, 0x80, 0x1f, 0x7e, 0xf8, 0x01, 0xc0, 0x3f, 0xff, 0xfc,
  230. X   0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0,
  231. X   0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff,
  232. X   0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03,
  233. X   0x80, 0xdf, 0xff, 0xfb, 0x01, 0x80, 0xbf, 0xff, 0xfd, 0x01, 0x80, 0x7f,
  234. X   0xff, 0xfe, 0x01, 0x00, 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff,
  235. X   0x00, 0x00, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0x00,
  236. X   0xf8, 0xff, 0x1f, 0x00, 0x00, 0xe0, 0xff, 0x07, 0x00, 0x00, 0x00, 0xff,
  237. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  238. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  239. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  240. END_OF_FILE
  241. if test 1322 -ne `wc -c <'bitmaps/bof.bm'`; then
  242.     echo shar: \"'bitmaps/bof.bm'\" unpacked with wrong size!
  243. fi
  244. # end of 'bitmaps/bof.bm'
  245. fi
  246. if test -f 'bitmaps/heureux.bm' -a "${1}" != "-c" ; then 
  247.   echo shar: Will not clobber existing file \"'bitmaps/heureux.bm'\"
  248. else
  249. echo shar: Extracting \"'bitmaps/heureux.bm'\" \(1334 characters\)
  250. sed "s/^X//" >'bitmaps/heureux.bm' <<'END_OF_FILE'
  251. X#define heureux_width 40
  252. X#define heureux_height 40
  253. Xstatic char heureux_bits[] = {
  254. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  255. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  256. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
  257. X   0xe0, 0xff, 0x07, 0x00, 0x00, 0xf8, 0xff, 0x1f, 0x00, 0x00, 0xfc, 0xff,
  258. X   0x3f, 0x00, 0x00, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00,
  259. X   0x00, 0x0f, 0x00, 0xf0, 0x00, 0x80, 0x07, 0x00, 0xe0, 0x01, 0x80, 0x0b,
  260. X   0x00, 0xd0, 0x01, 0x80, 0x0d, 0x18, 0xb0, 0x01, 0xc0, 0x0e, 0x3c, 0x70,
  261. X   0x03, 0x40, 0x1f, 0x7e, 0xf8, 0x02, 0x80, 0x3f, 0xff, 0xfc, 0x01, 0xc0,
  262. X   0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff,
  263. X   0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03,
  264. X   0x80, 0xff, 0xff, 0xff, 0x01, 0x80, 0xbf, 0xff, 0xfd, 0x01, 0x80, 0x7f,
  265. X   0xff, 0xfe, 0x01, 0x00, 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff,
  266. X   0x00, 0x00, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0x00,
  267. X   0xf8, 0xff, 0x1f, 0x00, 0x00, 0xe0, 0xff, 0x07, 0x00, 0x00, 0x00, 0xff,
  268. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  269. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  270. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  271. END_OF_FILE
  272. if test 1334 -ne `wc -c <'bitmaps/heureux.bm'`; then
  273.     echo shar: \"'bitmaps/heureux.bm'\" unpacked with wrong size!
  274. fi
  275. # end of 'bitmaps/heureux.bm'
  276. fi
  277. if test -f 'bitmaps/icone.bm' -a "${1}" != "-c" ; then 
  278.   echo shar: Will not clobber existing file \"'bitmaps/icone.bm'\"
  279. else
  280. echo shar: Extracting \"'bitmaps/icone.bm'\" \(1328 characters\)
  281. sed "s/^X//" >'bitmaps/icone.bm' <<'END_OF_FILE'
  282. X#define icone_width 40
  283. X#define icone_height 40
  284. Xstatic char icone_bits[] = {
  285. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  286. X   0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff,
  287. X   0x1f, 0xf8, 0xff, 0x00, 0xff, 0x1f, 0xf8, 0x1f, 0x00, 0xf8, 0x1f, 0xf8,
  288. X   0x07, 0x00, 0xe0, 0x1f, 0xf8, 0x03, 0x00, 0xc0, 0x1f, 0xf8, 0x01, 0x00,
  289. X   0x80, 0x1f, 0xf8, 0x00, 0x00, 0x00, 0x1f, 0x78, 0x00, 0x00, 0x00, 0x1e,
  290. X   0x78, 0x00, 0x00, 0x00, 0x1e, 0x38, 0x00, 0x00, 0x00, 0x1c, 0x38, 0x00,
  291. X   0x00, 0x00, 0x1c, 0x38, 0x00, 0x00, 0x00, 0x1c, 0x18, 0x00, 0x00, 0x00,
  292. X   0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18,
  293. X   0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00,
  294. X   0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x18,
  295. X   0x38, 0x00, 0x00, 0x00, 0x1c, 0x38, 0x00, 0x00, 0x00, 0x1c, 0x38, 0x00,
  296. X   0x00, 0x00, 0x1c, 0x78, 0x00, 0x00, 0x00, 0x1e, 0x78, 0x00, 0x00, 0x00,
  297. X   0x1e, 0xf8, 0x00, 0x00, 0x00, 0x1f, 0xf8, 0x01, 0x00, 0x80, 0x1f, 0xf8,
  298. X   0x03, 0x00, 0xc0, 0x1f, 0xf8, 0x07, 0x00, 0xe0, 0x1f, 0xf8, 0x1f, 0x00,
  299. X   0xf8, 0x1f, 0xf8, 0xff, 0x00, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0x1f,
  300. X   0xf8, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  301. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  302. END_OF_FILE
  303. if test 1328 -ne `wc -c <'bitmaps/icone.bm'`; then
  304.     echo shar: \"'bitmaps/icone.bm'\" unpacked with wrong size!
  305. fi
  306. # end of 'bitmaps/icone.bm'
  307. fi
  308. if test -f 'bitmaps/icone_blanc.bm' -a "${1}" != "-c" ; then 
  309.   echo shar: Will not clobber existing file \"'bitmaps/icone_blanc.bm'\"
  310. else
  311. echo shar: Extracting \"'bitmaps/icone_blanc.bm'\" \(1346 characters\)
  312. sed "s/^X//" >'bitmaps/icone_blanc.bm' <<'END_OF_FILE'
  313. X#define icone_blanc_width 40
  314. X#define icone_blanc_height 40
  315. Xstatic char icone_blanc_bits[] = {
  316. X   0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff,
  317. X   0xff, 0xff, 0x1f, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
  318. X   0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07,
  319. X   0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00,
  320. X   0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00,
  321. X   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00,
  322. X   0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
  323. X   0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07,
  324. X   0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00,
  325. X   0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00,
  326. X   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00,
  327. X   0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
  328. X   0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07,
  329. X   0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00,
  330. X   0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00,
  331. X   0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
  332. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  333. END_OF_FILE
  334. if test 1346 -ne `wc -c <'bitmaps/icone_blanc.bm'`; then
  335.     echo shar: \"'bitmaps/icone_blanc.bm'\" unpacked with wrong size!
  336. fi
  337. # end of 'bitmaps/icone_blanc.bm'
  338. fi
  339. if test -f 'bitmaps/icone_gris.bm' -a "${1}" != "-c" ; then 
  340.   echo shar: Will not clobber existing file \"'bitmaps/icone_gris.bm'\"
  341. else
  342. echo shar: Extracting \"'bitmaps/icone_gris.bm'\" \(1343 characters\)
  343. sed "s/^X//" >'bitmaps/icone_gris.bm' <<'END_OF_FILE'
  344. X#define icone_gris_width 40
  345. X#define icone_gris_height 40
  346. Xstatic char icone_gris_bits[] = {
  347. X   0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00,
  348. X   0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00,
  349. X   0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00,
  350. X   0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00,
  351. X   0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0,
  352. X   0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00,
  353. X   0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00,
  354. X   0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00,
  355. X   0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00,
  356. X   0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0,
  357. X   0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00,
  358. X   0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00,
  359. X   0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00,
  360. X   0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00,
  361. X   0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0,
  362. X   0x00, 0x00, 0x00, 0x00, 0xe0, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff,
  363. X   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
  364. END_OF_FILE
  365. if test 1343 -ne `wc -c <'bitmaps/icone_gris.bm'`; then
  366.     echo shar: \"'bitmaps/icone_gris.bm'\" unpacked with wrong size!
  367. fi
  368. # end of 'bitmaps/icone_gris.bm'
  369. fi
  370. if test -f 'bitmaps/joue.bm' -a "${1}" != "-c" ; then 
  371.   echo shar: Will not clobber existing file \"'bitmaps/joue.bm'\"
  372. else
  373. echo shar: Extracting \"'bitmaps/joue.bm'\" \(1325 characters\)
  374. sed "s/^X//" >'bitmaps/joue.bm' <<'END_OF_FILE'
  375. X#define joue_width 40
  376. X#define joue_height 40
  377. Xstatic char joue_bits[] = {
  378. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  379. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  380. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
  381. X   0xe0, 0xff, 0x07, 0x00, 0x00, 0xf8, 0xff, 0x1f, 0x00, 0x00, 0xfc, 0xff,
  382. X   0x3f, 0x00, 0x00, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00,
  383. X   0x00, 0x3f, 0xff, 0xfc, 0x00, 0x80, 0x1f, 0x7e, 0xf8, 0x01, 0x80, 0x0f,
  384. X   0x3c, 0xf0, 0x01, 0x80, 0x0f, 0x3c, 0xf0, 0x01, 0xc0, 0x1f, 0x7e, 0xf8,
  385. X   0x03, 0xc0, 0x3f, 0xff, 0xfc, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0,
  386. X   0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff,
  387. X   0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xe7, 0xff, 0x03,
  388. X   0x80, 0xff, 0xdb, 0xff, 0x01, 0x80, 0xff, 0xbd, 0xff, 0x01, 0x80, 0xff,
  389. X   0xbd, 0xff, 0x01, 0x00, 0xff, 0xdb, 0xff, 0x00, 0x00, 0xff, 0xe7, 0xff,
  390. X   0x00, 0x00, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0x00,
  391. X   0xf8, 0xff, 0x1f, 0x00, 0x00, 0xe0, 0xff, 0x07, 0x00, 0x00, 0x00, 0xff,
  392. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  393. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  394. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  395. END_OF_FILE
  396. if test 1325 -ne `wc -c <'bitmaps/joue.bm'`; then
  397.     echo shar: \"'bitmaps/joue.bm'\" unpacked with wrong size!
  398. fi
  399. # end of 'bitmaps/joue.bm'
  400. fi
  401. if test -f 'bitmaps/numero_0.bm' -a "${1}" != "-c" ; then 
  402.   echo shar: Will not clobber existing file \"'bitmaps/numero_0.bm'\"
  403. else
  404. echo shar: Extracting \"'bitmaps/numero_0.bm'\" \(650 characters\)
  405. sed "s/^X//" >'bitmaps/numero_0.bm' <<'END_OF_FILE'
  406. X#define numero_0_width 20
  407. X#define numero_0_height 30
  408. Xstatic char numero_0_bits[] = {
  409. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0x01, 0xf4, 0xff, 0x02,
  410. X   0xec, 0x7f, 0x03, 0xdc, 0xbf, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  411. X   0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x1c, 0x80, 0x03,
  412. X   0x0c, 0x00, 0x03, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02,
  413. X   0x0c, 0x00, 0x03, 0x1c, 0x80, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  414. X   0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  415. X   0xdc, 0xbf, 0x03, 0xec, 0x7f, 0x03, 0xf4, 0xff, 0x02, 0xf8, 0xff, 0x01,
  416. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  417. END_OF_FILE
  418. if test 650 -ne `wc -c <'bitmaps/numero_0.bm'`; then
  419.     echo shar: \"'bitmaps/numero_0.bm'\" unpacked with wrong size!
  420. fi
  421. # end of 'bitmaps/numero_0.bm'
  422. fi
  423. if test -f 'bitmaps/numero_1.bm' -a "${1}" != "-c" ; then 
  424.   echo shar: Will not clobber existing file \"'bitmaps/numero_1.bm'\"
  425. else
  426. echo shar: Extracting \"'bitmaps/numero_1.bm'\" \(650 characters\)
  427. sed "s/^X//" >'bitmaps/numero_1.bm' <<'END_OF_FILE'
  428. X#define numero_1_width 20
  429. X#define numero_1_height 30
  430. Xstatic char numero_1_bits[] = {
  431. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
  432. X   0x00, 0x00, 0x03, 0x00, 0x80, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  433. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0x80, 0x03,
  434. X   0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
  435. X   0x00, 0x00, 0x03, 0x00, 0x80, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  436. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  437. X   0x00, 0x80, 0x03, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
  438. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  439. END_OF_FILE
  440. if test 650 -ne `wc -c <'bitmaps/numero_1.bm'`; then
  441.     echo shar: \"'bitmaps/numero_1.bm'\" unpacked with wrong size!
  442. fi
  443. # end of 'bitmaps/numero_1.bm'
  444. fi
  445. if test -f 'bitmaps/numero_2.bm' -a "${1}" != "-c" ; then 
  446.   echo shar: Will not clobber existing file \"'bitmaps/numero_2.bm'\"
  447. else
  448. echo shar: Extracting \"'bitmaps/numero_2.bm'\" \(650 characters\)
  449. sed "s/^X//" >'bitmaps/numero_2.bm' <<'END_OF_FILE'
  450. X#define numero_2_width 20
  451. X#define numero_2_height 30
  452. Xstatic char numero_2_bits[] = {
  453. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0x01, 0xf0, 0xff, 0x02,
  454. X   0xe0, 0x7f, 0x03, 0xc0, 0xbf, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  455. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0x80, 0x03,
  456. X   0xe0, 0x7f, 0x03, 0xf0, 0xff, 0x02, 0xf8, 0xff, 0x01, 0xf4, 0xff, 0x00,
  457. X   0xec, 0x7f, 0x00, 0x1c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00,
  458. X   0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00,
  459. X   0xdc, 0x3f, 0x00, 0xec, 0x7f, 0x00, 0xf4, 0xff, 0x00, 0xf8, 0xff, 0x01,
  460. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  461. END_OF_FILE
  462. if test 650 -ne `wc -c <'bitmaps/numero_2.bm'`; then
  463.     echo shar: \"'bitmaps/numero_2.bm'\" unpacked with wrong size!
  464. fi
  465. # end of 'bitmaps/numero_2.bm'
  466. fi
  467. if test -f 'bitmaps/numero_3.bm' -a "${1}" != "-c" ; then 
  468.   echo shar: Will not clobber existing file \"'bitmaps/numero_3.bm'\"
  469. else
  470. echo shar: Extracting \"'bitmaps/numero_3.bm'\" \(650 characters\)
  471. sed "s/^X//" >'bitmaps/numero_3.bm' <<'END_OF_FILE'
  472. X#define numero_3_width 20
  473. X#define numero_3_height 30
  474. Xstatic char numero_3_bits[] = {
  475. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0x01, 0xf0, 0xff, 0x02,
  476. X   0xe0, 0x7f, 0x03, 0xc0, 0xbf, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  477. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0x80, 0x03,
  478. X   0xe0, 0x7f, 0x03, 0xf0, 0xff, 0x02, 0xf8, 0xff, 0x01, 0xf0, 0xff, 0x02,
  479. X   0xe0, 0x7f, 0x03, 0x00, 0x80, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  480. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  481. X   0xc0, 0xbf, 0x03, 0xe0, 0x7f, 0x03, 0xf0, 0xff, 0x02, 0xf8, 0xff, 0x01,
  482. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  483. END_OF_FILE
  484. if test 650 -ne `wc -c <'bitmaps/numero_3.bm'`; then
  485.     echo shar: \"'bitmaps/numero_3.bm'\" unpacked with wrong size!
  486. fi
  487. # end of 'bitmaps/numero_3.bm'
  488. fi
  489. if test -f 'bitmaps/numero_4.bm' -a "${1}" != "-c" ; then 
  490.   echo shar: Will not clobber existing file \"'bitmaps/numero_4.bm'\"
  491. else
  492. echo shar: Extracting \"'bitmaps/numero_4.bm'\" \(650 characters\)
  493. sed "s/^X//" >'bitmaps/numero_4.bm' <<'END_OF_FILE'
  494. X#define numero_4_width 20
  495. X#define numero_4_height 30
  496. Xstatic char numero_4_bits[] = {
  497. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02,
  498. X   0x0c, 0x00, 0x03, 0x1c, 0x80, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  499. X   0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x1c, 0x80, 0x03,
  500. X   0xec, 0x7f, 0x03, 0xf4, 0xff, 0x02, 0xf8, 0xff, 0x01, 0xf0, 0xff, 0x02,
  501. X   0xe0, 0x7f, 0x03, 0x00, 0x80, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  502. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  503. X   0x00, 0x80, 0x03, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
  504. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  505. END_OF_FILE
  506. if test 650 -ne `wc -c <'bitmaps/numero_4.bm'`; then
  507.     echo shar: \"'bitmaps/numero_4.bm'\" unpacked with wrong size!
  508. fi
  509. # end of 'bitmaps/numero_4.bm'
  510. fi
  511. if test -f 'bitmaps/numero_5.bm' -a "${1}" != "-c" ; then 
  512.   echo shar: Will not clobber existing file \"'bitmaps/numero_5.bm'\"
  513. else
  514. echo shar: Extracting \"'bitmaps/numero_5.bm'\" \(650 characters\)
  515. sed "s/^X//" >'bitmaps/numero_5.bm' <<'END_OF_FILE'
  516. X#define numero_5_width 20
  517. X#define numero_5_height 30
  518. Xstatic char numero_5_bits[] = {
  519. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0x01, 0xf4, 0xff, 0x00,
  520. X   0xec, 0x7f, 0x00, 0xdc, 0x3f, 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00,
  521. X   0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x1c, 0x00, 0x00,
  522. X   0xec, 0x7f, 0x00, 0xf4, 0xff, 0x00, 0xf8, 0xff, 0x01, 0xf0, 0xff, 0x02,
  523. X   0xe0, 0x7f, 0x03, 0x00, 0x80, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  524. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  525. X   0xc0, 0xbf, 0x03, 0xe0, 0x7f, 0x03, 0xf0, 0xff, 0x02, 0xf8, 0xff, 0x01,
  526. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  527. END_OF_FILE
  528. if test 650 -ne `wc -c <'bitmaps/numero_5.bm'`; then
  529.     echo shar: \"'bitmaps/numero_5.bm'\" unpacked with wrong size!
  530. fi
  531. # end of 'bitmaps/numero_5.bm'
  532. fi
  533. if test -f 'bitmaps/numero_6.bm' -a "${1}" != "-c" ; then 
  534.   echo shar: Will not clobber existing file \"'bitmaps/numero_6.bm'\"
  535. else
  536. echo shar: Extracting \"'bitmaps/numero_6.bm'\" \(650 characters\)
  537. sed "s/^X//" >'bitmaps/numero_6.bm' <<'END_OF_FILE'
  538. X#define numero_6_width 20
  539. X#define numero_6_height 30
  540. Xstatic char numero_6_bits[] = {
  541. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0x01, 0xf4, 0xff, 0x00,
  542. X   0xec, 0x7f, 0x00, 0xdc, 0x3f, 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00,
  543. X   0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x1c, 0x00, 0x00,
  544. X   0xec, 0x7f, 0x00, 0xf4, 0xff, 0x00, 0xf8, 0xff, 0x01, 0xf4, 0xff, 0x02,
  545. X   0xec, 0x7f, 0x03, 0x1c, 0x80, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  546. X   0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  547. X   0xdc, 0xbf, 0x03, 0xec, 0x7f, 0x03, 0xf4, 0xff, 0x02, 0xf8, 0xff, 0x01,
  548. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  549. END_OF_FILE
  550. if test 650 -ne `wc -c <'bitmaps/numero_6.bm'`; then
  551.     echo shar: \"'bitmaps/numero_6.bm'\" unpacked with wrong size!
  552. fi
  553. # end of 'bitmaps/numero_6.bm'
  554. fi
  555. if test -f 'bitmaps/numero_7.bm' -a "${1}" != "-c" ; then 
  556.   echo shar: Will not clobber existing file \"'bitmaps/numero_7.bm'\"
  557. else
  558. echo shar: Extracting \"'bitmaps/numero_7.bm'\" \(650 characters\)
  559. sed "s/^X//" >'bitmaps/numero_7.bm' <<'END_OF_FILE'
  560. X#define numero_7_width 20
  561. X#define numero_7_height 30
  562. Xstatic char numero_7_bits[] = {
  563. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0x01, 0xf0, 0xff, 0x02,
  564. X   0xe0, 0x7f, 0x03, 0xc0, 0xbf, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  565. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0x80, 0x03,
  566. X   0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
  567. X   0x00, 0x00, 0x03, 0x00, 0x80, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  568. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  569. X   0x00, 0x80, 0x03, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
  570. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  571. END_OF_FILE
  572. if test 650 -ne `wc -c <'bitmaps/numero_7.bm'`; then
  573.     echo shar: \"'bitmaps/numero_7.bm'\" unpacked with wrong size!
  574. fi
  575. # end of 'bitmaps/numero_7.bm'
  576. fi
  577. if test -f 'bitmaps/numero_8.bm' -a "${1}" != "-c" ; then 
  578.   echo shar: Will not clobber existing file \"'bitmaps/numero_8.bm'\"
  579. else
  580. echo shar: Extracting \"'bitmaps/numero_8.bm'\" \(650 characters\)
  581. sed "s/^X//" >'bitmaps/numero_8.bm' <<'END_OF_FILE'
  582. X#define numero_8_width 20
  583. X#define numero_8_height 30
  584. Xstatic char numero_8_bits[] = {
  585. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0x01, 0xf4, 0xff, 0x02,
  586. X   0xec, 0x7f, 0x03, 0xdc, 0xbf, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  587. X   0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x1c, 0x80, 0x03,
  588. X   0xec, 0x7f, 0x03, 0xf4, 0xff, 0x02, 0xf8, 0xff, 0x01, 0xf4, 0xff, 0x02,
  589. X   0xec, 0x7f, 0x03, 0x1c, 0x80, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  590. X   0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  591. X   0xdc, 0xbf, 0x03, 0xec, 0x7f, 0x03, 0xf4, 0xff, 0x02, 0xf8, 0xff, 0x01,
  592. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  593. END_OF_FILE
  594. if test 650 -ne `wc -c <'bitmaps/numero_8.bm'`; then
  595.     echo shar: \"'bitmaps/numero_8.bm'\" unpacked with wrong size!
  596. fi
  597. # end of 'bitmaps/numero_8.bm'
  598. fi
  599. if test -f 'bitmaps/numero_9.bm' -a "${1}" != "-c" ; then 
  600.   echo shar: Will not clobber existing file \"'bitmaps/numero_9.bm'\"
  601. else
  602. echo shar: Extracting \"'bitmaps/numero_9.bm'\" \(650 characters\)
  603. sed "s/^X//" >'bitmaps/numero_9.bm' <<'END_OF_FILE'
  604. X#define numero_9_width 20
  605. X#define numero_9_height 30
  606. Xstatic char numero_9_bits[] = {
  607. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0x01, 0xf4, 0xff, 0x02,
  608. X   0xec, 0x7f, 0x03, 0xdc, 0xbf, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03,
  609. X   0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x3c, 0xc0, 0x03, 0x1c, 0x80, 0x03,
  610. X   0xec, 0x7f, 0x03, 0xf4, 0xff, 0x02, 0xf8, 0xff, 0x01, 0xf0, 0xff, 0x02,
  611. X   0xe0, 0x7f, 0x03, 0x00, 0x80, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  612. X   0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x03,
  613. X   0xc0, 0xbf, 0x03, 0xe0, 0x7f, 0x03, 0xf0, 0xff, 0x02, 0xf8, 0xff, 0x01,
  614. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  615. END_OF_FILE
  616. if test 650 -ne `wc -c <'bitmaps/numero_9.bm'`; then
  617.     echo shar: \"'bitmaps/numero_9.bm'\" unpacked with wrong size!
  618. fi
  619. # end of 'bitmaps/numero_9.bm'
  620. fi
  621. if test -f 'bitmaps/reflet_manquee.bm' -a "${1}" != "-c" ; then 
  622.   echo shar: Will not clobber existing file \"'bitmaps/reflet_manquee.bm'\"
  623. else
  624. echo shar: Extracting \"'bitmaps/reflet_manquee.bm'\" \(479 characters\)
  625. sed "s/^X//" >'bitmaps/reflet_manquee.bm' <<'END_OF_FILE'
  626. X#define reflet_manquee_width 20
  627. X#define reflet_manquee_height 20
  628. Xstatic char reflet_manquee_bits[] = {
  629. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  630. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
  631. X   0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  632. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  633. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  634. END_OF_FILE
  635. if test 479 -ne `wc -c <'bitmaps/reflet_manquee.bm'`; then
  636.     echo shar: \"'bitmaps/reflet_manquee.bm'\" unpacked with wrong size!
  637. fi
  638. # end of 'bitmaps/reflet_manquee.bm'
  639. fi
  640. if test -f 'bitmaps/select_blanc.bm' -a "${1}" != "-c" ; then 
  641.   echo shar: Will not clobber existing file \"'bitmaps/select_blanc.bm'\"
  642. else
  643. echo shar: Extracting \"'bitmaps/select_blanc.bm'\" \(1349 characters\)
  644. sed "s/^X//" >'bitmaps/select_blanc.bm' <<'END_OF_FILE'
  645. X#define select_blanc_width 40
  646. X#define select_blanc_height 40
  647. Xstatic char select_blanc_bits[] = {
  648. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
  649. X   0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00,
  650. X   0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00,
  651. X   0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00,
  652. X   0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0,
  653. X   0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00,
  654. X   0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00,
  655. X   0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00,
  656. X   0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00,
  657. X   0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0,
  658. X   0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00,
  659. X   0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00,
  660. X   0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00,
  661. X   0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00,
  662. X   0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0xe0,
  663. X   0x00, 0x00, 0x00, 0x00, 0xe0, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff,
  664. X   0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff};
  665. END_OF_FILE
  666. if test 1349 -ne `wc -c <'bitmaps/select_blanc.bm'`; then
  667.     echo shar: \"'bitmaps/select_blanc.bm'\" unpacked with wrong size!
  668. fi
  669. # end of 'bitmaps/select_blanc.bm'
  670. fi
  671. if test -f 'bitmaps/select_gris.bm' -a "${1}" != "-c" ; then 
  672.   echo shar: Will not clobber existing file \"'bitmaps/select_gris.bm'\"
  673. else
  674. echo shar: Extracting \"'bitmaps/select_gris.bm'\" \(1346 characters\)
  675. sed "s/^X//" >'bitmaps/select_gris.bm' <<'END_OF_FILE'
  676. X#define select_gris_width 40
  677. X#define select_gris_height 40
  678. Xstatic char select_gris_bits[] = {
  679. X   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff,
  680. X   0xff, 0xff, 0x3f, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
  681. X   0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07,
  682. X   0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00,
  683. X   0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00,
  684. X   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00,
  685. X   0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
  686. X   0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07,
  687. X   0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00,
  688. X   0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00,
  689. X   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00,
  690. X   0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
  691. X   0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07,
  692. X   0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00,
  693. X   0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00,
  694. X   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
  695. X   0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00};
  696. END_OF_FILE
  697. if test 1346 -ne `wc -c <'bitmaps/select_gris.bm'`; then
  698.     echo shar: \"'bitmaps/select_gris.bm'\" unpacked with wrong size!
  699. fi
  700. # end of 'bitmaps/select_gris.bm'
  701. fi
  702. if test -f 'bitmaps/triste.bm' -a "${1}" != "-c" ; then 
  703.   echo shar: Will not clobber existing file \"'bitmaps/triste.bm'\"
  704. else
  705. echo shar: Extracting \"'bitmaps/triste.bm'\" \(1331 characters\)
  706. sed "s/^X//" >'bitmaps/triste.bm' <<'END_OF_FILE'
  707. X#define triste_width 40
  708. X#define triste_height 40
  709. Xstatic char triste_bits[] = {
  710. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  711. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  712. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00,
  713. X   0xe0, 0xff, 0x07, 0x00, 0x00, 0xf8, 0xff, 0x1f, 0x00, 0x00, 0xfc, 0xff,
  714. X   0x3f, 0x00, 0x00, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00,
  715. X   0x00, 0xff, 0xff, 0xff, 0x00, 0x80, 0xdf, 0x7e, 0xfb, 0x01, 0x80, 0x3f,
  716. X   0xff, 0xfc, 0x01, 0x80, 0x3f, 0xff, 0xfc, 0x01, 0xc0, 0xdf, 0x7e, 0xfb,
  717. X   0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0,
  718. X   0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff,
  719. X   0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x03,
  720. X   0x80, 0xff, 0x00, 0xff, 0x01, 0x80, 0x7f, 0xff, 0xfe, 0x01, 0x80, 0xbf,
  721. X   0xff, 0xfd, 0x01, 0x00, 0xdf, 0xff, 0xfb, 0x00, 0x00, 0xff, 0xff, 0xff,
  722. X   0x00, 0x00, 0xfe, 0xff, 0x7f, 0x00, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0x00,
  723. X   0xf8, 0xff, 0x1f, 0x00, 0x00, 0xe0, 0xff, 0x07, 0x00, 0x00, 0x00, 0xff,
  724. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  725. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  726. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  727. END_OF_FILE
  728. if test 1331 -ne `wc -c <'bitmaps/triste.bm'`; then
  729.     echo shar: \"'bitmaps/triste.bm'\" unpacked with wrong size!
  730. fi
  731. # end of 'bitmaps/triste.bm'
  732. fi
  733. if test -f 'demineur.c' -a "${1}" != "-c" ; then 
  734.   echo shar: Will not clobber existing file \"'demineur.c'\"
  735. else
  736. echo shar: Extracting \"'demineur.c'\" \(7984 characters\)
  737. sed "s/^X//" >'demineur.c' <<'END_OF_FILE'
  738. X/* ********************************************************************** */
  739. X/*                                                                        */
  740. X/* xdemineur - Jeu de reflexion sous X, version 1.0                       */
  741. X/*                                                                        */
  742. X/* Copyright : Marc Baudoin (baudoin@ensta.fr)                            */
  743. X/*                                                                        */
  744. X/*            |\                                                          */
  745. X/*          |\| \                                                         */
  746. X/*          |//  )                                                        */
  747. X/*        |\ /  /        /\/\_                                            */
  748. X/*        |//  /        /. . /                                            */
  749. X/*      |\ /  /     ___/    |_                                            */
  750. X/*      |//  /     (____/    /_/\_                                        */
  751. X/*       |__|      (_____/ __     >                                       */
  752. X/*     /| ___  ________ _< \ \__  >                                       */
  753. X/*     \|| __\| _|_   _/ \\ \___\/                                        */
  754. X/*       | __\____ | |/ _ \\    >                                         */
  755. X/*     /||___\_____|___/ \_\\  _>                                         */
  756. X/*     \|____           ____ \|                                           */
  757. X/*       \   \_________/   /                                              */
  758. X/*        \   _    _      /                                               */
  759. X/*         \_//   //_____/                                                */
  760. X/*           (_   \ (_  _\                                                */
  761. X/*             |/\|   \/                                                  */
  762. X/*                                                                        */
  763. X/* Ecole Nationale Superieure de Techniques Avancees (ENSTA)              */
  764. X/* 32, boulevard Victor - 75015 Paris - France                            */
  765. X/*                                                                        */
  766. X/* Vous avez le droit d'utiliser et de distribuer xdemineur et sa         */
  767. X/* documentation pourvu que cette notice de copyright apparaisse sur      */
  768. X/* toutes les copies et que vous ne tiriez aucun profit de mon programme. */
  769. X/*                                                                        */
  770. X/* ********************************************************************** */
  771. X
  772. X
  773. X
  774. X#include <stdlib.h>
  775. X#include <sys/time.h>
  776. X#include "demineur.h"
  777. X
  778. Xstruct jeu **tableau ;   /* le tableau de jeu */
  779. X
  780. Xint nb_lig = NB_LIG ;    /* nombre de lignes   du tableau de jeu */
  781. Xint nb_col = NB_COL ;    /* nombre de colonnes du tableau de jeu */
  782. Xint nb_mines ;           /* nombre de mines    du tableau de jeu */
  783. X
  784. Xint mines ;              /* nombre de mines restant a trouver */
  785. X
  786. Xtime_t temps ;           /* nombre de secondes ecoulees depuis le debut du jeu */
  787. X
  788. XBOOLEAN perdu , gagne , jeu , ouvre = FALSE ;
  789. X
  790. X/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Gestion du jeu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  791. X
  792. Xremplis_et_compte ( )
  793. X{
  794. X   register int l , c , i ;
  795. X
  796. X   /* initialisation des variables */
  797. X
  798. X   mines = nb_mines ;
  799. X   temps = 0L ;
  800. X   perdu = gagne = jeu = FALSE ;
  801. X
  802. X   /* initialisation du tableau */
  803. X
  804. X   for ( l = 0 ; l < nb_lig + 2 ; l ++ )
  805. X   {
  806. X      for ( c = 0 ; c < nb_col + 2 ; c ++ )
  807. X      {
  808. X         tableau [ l ] [ c ] . mine   = FALSE ;
  809. X         tableau [ l ] [ c ] . nombre = 0 ;
  810. X         tableau [ l ] [ c ] . etat   = COUVERTE ;
  811. X      }
  812. X   }
  813. X
  814. X   /* pose des mines */
  815. X
  816. X   srand48 ( time ( 0 ) ) ;
  817. X   i = nb_mines ;
  818. X   while ( i > 0 )
  819. X   {
  820. X      l = 1 + ( int ) ( lrand48 ( ) % nb_lig ) ;
  821. X      c = 1 + ( int ) ( lrand48 ( ) % nb_col ) ;
  822. X      if ( ! tableau [ l ] [ c ] . mine )
  823. X      {
  824. X         tableau [ l ] [ c ] . mine = TRUE ;
  825. X         i -- ;
  826. X      }
  827. X   }
  828. X
  829. X   /* comptage des mines */
  830. X
  831. X   for ( l = 1 ; l <= nb_lig ; l ++ )
  832. X   {
  833. X      for ( c = 1 ; c <= nb_col ; c ++ )
  834. X      {
  835. X         tableau [ l ] [ c ] . nombre = mine01 ( l - 1 , c - 1 ) +
  836. X                                        mine01 ( l - 1 , c     ) +
  837. X                                        mine01 ( l - 1 , c + 1 ) +
  838. X                                        mine01 ( l     , c - 1 ) +
  839. X                                        mine01 ( l     , c + 1 ) +
  840. X                                        mine01 ( l + 1 , c - 1 ) +
  841. X                                        mine01 ( l + 1 , c     ) +
  842. X                                        mine01 ( l + 1 , c + 1 ) ;
  843. X      }
  844. X   }
  845. X
  846. X   /* ouverture automatique */
  847. X
  848. X   while ( ouvre )
  849. X   {
  850. X      l = 1 + ( int ) ( lrand48 ( ) % nb_lig ) ;
  851. X      c = 1 + ( int ) ( lrand48 ( ) % nb_col ) ;
  852. X      if ( tableau [ l ] [ c ] . nombre == 0 &&
  853. X           ! tableau [ l ] [ c ] . mine )
  854. X      {
  855. X         decouvre ( l , c ) ;
  856. X         break ;
  857. X      }
  858. X   }
  859. X}
  860. X
  861. Xint mine01 ( lig , col )
  862. Xint lig , col ;
  863. X{
  864. X   return ( tableau [ lig ] [ col ] . mine ? 1 : 0 ) ;
  865. X}
  866. X
  867. Xjoue ( lig , col )
  868. Xint lig , col ;
  869. X{
  870. X   if ( tableau [ lig ] [ col ] . mine )   /* perdu ! */
  871. X   {
  872. X      perdu = TRUE ;
  873. X      jeu = FALSE ;
  874. X      tableau [ lig ] [ col ] . etat = DECOUVERTE ;
  875. X      affiche_jeu ( ) ;
  876. X   }
  877. X   else if ( tableau [ lig ] [ col ] . nombre == 0 )
  878. X   {
  879. X      decouvre ( lig , col ) ;
  880. X   }
  881. X   else
  882. X   {
  883. X      tableau [ lig ] [ col ] . etat = DECOUVERTE ;
  884. X      affiche_case ( lig , col ) ;
  885. X   }
  886. X   if ( mines == 0 )   /* gagne ? */
  887. X   {
  888. X      gagne_perdu ( ) ;
  889. X   }
  890. X}
  891. X
  892. Xdecouvre ( lig , col )
  893. Xint lig , col ;
  894. X{
  895. X   if ( lig >= 1 && lig <= nb_lig && col >= 1 && col <= nb_col )
  896. X   {
  897. X      if ( tableau [ lig ] [ col ] . etat != DECOUVERTE &&
  898. X           tableau [ lig ] [ col ] . etat != MARQUEE )
  899. X      {
  900. X         tableau [ lig ] [ col ] . etat = DECOUVERTE ;
  901. X         affiche_case ( lig , col ) ;
  902. X         if ( tableau [ lig ] [ col ] . mine )
  903. X         {
  904. X            perdu = TRUE ;
  905. X            jeu = FALSE ;
  906. X            affiche_jeu ( ) ;
  907. X         }
  908. X         if ( tableau [ lig ] [ col ] . nombre == 0 )
  909. X         {
  910. X            decouvre ( lig - 1 , col - 1 ) ;
  911. X            decouvre ( lig - 1 , col     ) ;
  912. X            decouvre ( lig - 1 , col + 1 ) ;
  913. X            decouvre ( lig     , col - 1 ) ;
  914. X            decouvre ( lig     , col + 1 ) ;
  915. X            decouvre ( lig + 1 , col - 1 ) ;
  916. X            decouvre ( lig + 1 , col     ) ;
  917. X            decouvre ( lig + 1 , col + 1 ) ;
  918. X         }
  919. X         if ( mines == 0 )   /* gagne ? */
  920. X         {
  921. X            gagne_perdu ( ) ;
  922. X         }
  923. X      }
  924. X   }
  925. X}
  926. X
  927. Xdouble_clic ( lig , col )
  928. Xint lig , col ;
  929. X{
  930. X   decouvre ( lig - 1 , col - 1 ) ;
  931. X   decouvre ( lig - 1 , col     ) ;
  932. X   decouvre ( lig - 1 , col + 1 ) ;
  933. X   decouvre ( lig     , col - 1 ) ;
  934. X   decouvre ( lig     , col + 1 ) ;
  935. X   decouvre ( lig + 1 , col - 1 ) ;
  936. X   decouvre ( lig + 1 , col     ) ;
  937. X   decouvre ( lig + 1 , col + 1 ) ;
  938. X}
  939. X
  940. Xmarque ( lig , col )
  941. Xint lig , col ;
  942. X{
  943. X   switch ( tableau [ lig ] [ col ] . etat )
  944. X   {
  945. X   case COUVERTE :
  946. X      if ( mines > 0 )
  947. X      {
  948. X         tableau [ lig ] [ col ] . etat = MARQUEE ;
  949. X         mines -- ;
  950. X         nombre_de_mines ( ) ;
  951. X         affiche_case ( lig , col ) ;
  952. X         if ( mines == 0 )   /* gagne ? */
  953. X         {
  954. X               gagne_perdu ( ) ;
  955. X         }
  956. X      }
  957. X      break ;
  958. X   case MARQUEE :
  959. X      tableau [ lig ] [ col ] . etat = INTERRO ;
  960. X      mines ++ ;
  961. X      nombre_de_mines ( ) ;
  962. X      affiche_case ( lig , col ) ;
  963. X      break ;
  964. X   case INTERRO :
  965. X      tableau [ lig ] [ col ] . etat = COUVERTE ;
  966. X      affiche_case ( lig , col ) ;
  967. X      break ;
  968. X   }
  969. X}
  970. X
  971. Xgagne_perdu ( )
  972. X{
  973. X   register int l , c ;
  974. X   BOOLEAN ok = TRUE ;
  975. X
  976. X   for ( l = 1 ; l <= nb_lig ; l ++ )
  977. X   {
  978. X      for ( c = 1 ; c <= nb_col ; c ++ )
  979. X      {
  980. X         if ( tableau [ l ] [ c ] . etat != DECOUVERTE &&
  981. X              tableau [ l ] [ c ] . etat != MARQUEE )
  982. X         {
  983. X            ok = FALSE ;
  984. X         }
  985. X      }
  986. X   }
  987. X   if ( ok )   /* gagne ! */
  988. X   {
  989. X      gagne = TRUE ;
  990. X      jeu = FALSE ;
  991. X      icone_perdu_gagne ( ) ;
  992. X   }
  993. X}
  994. END_OF_FILE
  995. if test 7984 -ne `wc -c <'demineur.c'`; then
  996.     echo shar: \"'demineur.c'\" unpacked with wrong size!
  997. fi
  998. # end of 'demineur.c'
  999. fi
  1000. if test -f 'demineur.h' -a "${1}" != "-c" ; then 
  1001.   echo shar: Will not clobber existing file \"'demineur.h'\"
  1002. else
  1003. echo shar: Extracting \"'demineur.h'\" \(3240 characters\)
  1004. sed "s/^X//" >'demineur.h' <<'END_OF_FILE'
  1005. X/* ********************************************************************** */
  1006. X/*                                                                        */
  1007. X/* xdemineur - Jeu de reflexion sous X, version 1.0                       */
  1008. X/*                                                                        */
  1009. X/* Copyright : Marc Baudoin (baudoin@ensta.fr)                            */
  1010. X/*                                                                        */
  1011. X/*            |\                                                          */
  1012. X/*          |\| \                                                         */
  1013. X/*          |//  )                                                        */
  1014. X/*        |\ /  /        /\/\_                                            */
  1015. X/*        |//  /        /. . /                                            */
  1016. X/*      |\ /  /     ___/    |_                                            */
  1017. X/*      |//  /     (____/    /_/\_                                        */
  1018. X/*       |__|      (_____/ __     >                                       */
  1019. X/*     /| ___  ________ _< \ \__  >                                       */
  1020. X/*     \|| __\| _|_   _/ \\ \___\/                                        */
  1021. X/*       | __\____ | |/ _ \\    >                                         */
  1022. X/*     /||___\_____|___/ \_\\  _>                                         */
  1023. X/*     \|____           ____ \|                                           */
  1024. X/*       \   \_________/   /                                              */
  1025. X/*        \   _    _      /                                               */
  1026. X/*         \_//   //_____/                                                */
  1027. X/*           (_   \ (_  _\                                                */
  1028. X/*             |/\|   \/                                                  */
  1029. X/*                                                                        */
  1030. X/* Ecole Nationale Superieure de Techniques Avancees (ENSTA)              */
  1031. X/* 32, boulevard Victor - 75015 Paris - France                            */
  1032. X/*                                                                        */
  1033. X/* Vous avez le droit d'utiliser et de distribuer xdemineur et sa         */
  1034. X/* documentation pourvu que cette notice de copyright apparaisse sur      */
  1035. X/* toutes les copies et que vous ne tiriez aucun profit de mon programme. */
  1036. X/*                                                                        */
  1037. X/* ********************************************************************** */
  1038. X
  1039. X
  1040. X
  1041. X#define NB_LIG     16   /* nombre de lignes   du tableau de jeu (par defaut) */
  1042. X#define NB_COL     30   /* nombre de colonnes du tableau de jeu (par defaut) */
  1043. X#define NB_MINES   ( int ) ( ( double ) ( nb_lig * nb_col ) / 4.8 )
  1044. X
  1045. Xtypedef int BOOLEAN ;
  1046. X#define TRUE    1
  1047. X#define FALSE   0
  1048. X
  1049. Xstruct jeu
  1050. X{
  1051. X   BOOLEAN   mine ;     /* TRUE s'il y a une mine, FALSE sinon  */
  1052. X   int       nombre ;   /* nombre de mines autour de cette case */
  1053. X   enum
  1054. X   {
  1055. X      COUVERTE     /* on n'a pas regarde     */ ,
  1056. X      DECOUVERTE   /* on a decouvert la case */ ,
  1057. X      MARQUEE      /* il y a une mine        */ ,
  1058. X      INTERRO      /* on se demande          */
  1059. X   }
  1060. X   etat ;          /* etat de la case */
  1061. X} ;
  1062. END_OF_FILE
  1063. if test 3240 -ne `wc -c <'demineur.h'`; then
  1064.     echo shar: \"'demineur.h'\" unpacked with wrong size!
  1065. fi
  1066. # end of 'demineur.h'
  1067. fi
  1068. if test -f 'xdemineur.h' -a "${1}" != "-c" ; then 
  1069.   echo shar: Will not clobber existing file \"'xdemineur.h'\"
  1070. else
  1071. echo shar: Extracting \"'xdemineur.h'\" \(3789 characters\)
  1072. sed "s/^X//" >'xdemineur.h' <<'END_OF_FILE'
  1073. X/* ********************************************************************** */
  1074. X/*                                                                        */
  1075. X/* xdemineur - Jeu de reflexion sous X, version 1.0                       */
  1076. X/*                                                                        */
  1077. X/* Copyright : Marc Baudoin (baudoin@ensta.fr)                            */
  1078. X/*                                                                        */
  1079. X/*            |\                                                          */
  1080. X/*          |\| \                                                         */
  1081. X/*          |//  )                                                        */
  1082. X/*        |\ /  /        /\/\_                                            */
  1083. X/*        |//  /        /. . /                                            */
  1084. X/*      |\ /  /     ___/    |_                                            */
  1085. X/*      |//  /     (____/    /_/\_                                        */
  1086. X/*       |__|      (_____/ __     >                                       */
  1087. X/*     /| ___  ________ _< \ \__  >                                       */
  1088. X/*     \|| __\| _|_   _/ \\ \___\/                                        */
  1089. X/*       | __\____ | |/ _ \\    >                                         */
  1090. X/*     /||___\_____|___/ \_\\  _>                                         */
  1091. X/*     \|____           ____ \|                                           */
  1092. X/*       \   \_________/   /                                              */
  1093. X/*        \   _    _      /                                               */
  1094. X/*         \_//   //_____/                                                */
  1095. X/*           (_   \ (_  _\                                                */
  1096. X/*             |/\|   \/                                                  */
  1097. X/*                                                                        */
  1098. X/* Ecole Nationale Superieure de Techniques Avancees (ENSTA)              */
  1099. X/* 32, boulevard Victor - 75015 Paris - France                            */
  1100. X/*                                                                        */
  1101. X/* Vous avez le droit d'utiliser et de distribuer xdemineur et sa         */
  1102. X/* documentation pourvu que cette notice de copyright apparaisse sur      */
  1103. X/* toutes les copies et que vous ne tiriez aucun profit de mon programme. */
  1104. X/*                                                                        */
  1105. X/* ********************************************************************** */
  1106. X
  1107. X
  1108. X
  1109. X#define BORD          15   /* bord entourant la fenetre et le tableau de jeu */
  1110. X#define LARG_BORD      3   /* largeur du bord (en pixels) */
  1111. X
  1112. X#define MARGE_HAUT    ( 2 * BORD + 50 )   /* marge superieure (icone, indicateurs) */
  1113. X
  1114. X#define LARG_CASE     20   /* largeur d'une case (en pixels) */
  1115. X#define HAUT_CASE     20   /* hauteur d'une case (en pixels) */
  1116. X
  1117. X#define X_JEU         BORD
  1118. X#define Y_JEU         MARGE_HAUT
  1119. X#define LARG_JEU      nb_col * LARG_CASE + nb_col + 1
  1120. X#define HAUT_JEU      nb_lig * HAUT_CASE + nb_lig + 1
  1121. X
  1122. X#define LARGEUR_FEN   LARG_JEU + 2 * BORD
  1123. X#define HAUTEUR_FEN   HAUT_JEU + MARGE_HAUT + BORD
  1124. X#define X_FEN         ( DisplayWidth  ( display , screen ) - LARGEUR_FEN ) / 2
  1125. X#define Y_FEN         ( DisplayHeight ( display , screen ) - HAUTEUR_FEN ) / 2
  1126. X
  1127. X#define HAUT_NUMERO   30
  1128. X#define LARG_NUMERO   20
  1129. X
  1130. X#define X_NB_MINES    ( MARGE_HAUT - HAUT_NUMERO ) / 2
  1131. X#define Y_NB_MINES    ( MARGE_HAUT - HAUT_NUMERO ) / 2
  1132. X
  1133. X#define LARG_ICONE    40
  1134. X#define HAUT_ICONE    40
  1135. X#define X_ICONE       ( LARGEUR_FEN - LARG_ICONE ) / 2
  1136. X#define Y_ICONE       ( MARGE_HAUT  - HAUT_ICONE ) / 2 
  1137. X
  1138. X#define X_CHRONO      LARGEUR_FEN - ( MARGE_HAUT - HAUT_NUMERO ) / 2 - 3 * LARG_NUMERO
  1139. X#define Y_CHRONO      ( MARGE_HAUT - HAUT_NUMERO ) / 2
  1140. END_OF_FILE
  1141. if test 3789 -ne `wc -c <'xdemineur.h'`; then
  1142.     echo shar: \"'xdemineur.h'\" unpacked with wrong size!
  1143. fi
  1144. # end of 'xdemineur.h'
  1145. fi
  1146. if test -f 'xdemineur.man' -a "${1}" != "-c" ; then 
  1147.   echo shar: Will not clobber existing file \"'xdemineur.man'\"
  1148. else
  1149. echo shar: Extracting \"'xdemineur.man'\" \(3940 characters\)
  1150. sed "s/^X//" >'xdemineur.man' <<'END_OF_FILE'
  1151. X.\" Man page pour xdemineur, Copyright Marc Baudoin.
  1152. X.TH xdemineur 6 "05 janvier 1993"
  1153. X
  1154. X.SH NOM
  1155. X
  1156. Xxdemineur \- Eclatez-vous a trouver les mines.
  1157. X
  1158. X.SH SYNOPSIS
  1159. X
  1160. X.B xdemineur
  1161. X[\fB-display\fR \fIdisplay\fR] [\fB-l\fR \fIlignes\fR]
  1162. X[\fB-c\fR \fIcolonnes\fR] [\fB-m\fR \fImines\fR] [\fB-ouvre\fR]
  1163. X
  1164. X.SH DESCRIPTION
  1165. X
  1166. X.I xdemineur
  1167. Xest une version X du jeu du demineur.
  1168. X
  1169. XIl s'agit de decouvrir ou se trouvent les mines et de marquer leur emplacement
  1170. Xavec un petit drapeau. Vous disposez d'autant de drapeaux qu'il y a de mines,
  1171. Xpas un de plus. Le nombre de drapeaux qu'il vous reste a poser est affiche en
  1172. Xhaut a gauche. De plus, pour mettre un peu de piment dans ce jeu, il y a un
  1173. Xchronometre en haut a droite.
  1174. X
  1175. XTout le jeu se joue a la souris au moyen de deux boutons : les boutons de
  1176. Xgauche et de droite. Le bouton de gauche decouvre la case sur laquelle on
  1177. Xclique (esperons qu'elle ne cache pas une mine) et le bouton de droite pose
  1178. Xun drapeau. Si l'on reclique avec le bouton de droite sur une case marquee
  1179. Xd'un drapeau, celui-ci se transforme en point d'interrogation : c'est utile
  1180. Xlorsqu'on reflechit sur la position possible de certaines mines. Un nouveau
  1181. Xclic sur le bouton de droite et le point d'interrogation disparait. Cliquer
  1182. Xavec les deux boutons sur une case decouverte qui a tous ses drapeaux permet
  1183. Xde decouvrir les cases environnantes (cela fait gagner beaucoup de temps).
  1184. X
  1185. XPour commencer a jouer, il faut cliquer au hasard en decouvrant des cases pour
  1186. Xtrouver une "ouverture" (un certain nombre de cases qui se decouvrent toutes en
  1187. Xmeme temps), a moins que vous ayez specifie l'option
  1188. X.B -ouvre
  1189. X(elle permet une ouverture automatique).
  1190. X
  1191. XLes chiffres affiches dans les cases decouvertes indiquent le nombre de mines
  1192. Xqui se trouvent tout autour (par exemple, un 3 signifie qu'il y a trois mines
  1193. Xparmi les 8 cases adjacentes). Tout le jeu repose sur l'utilisation de ces
  1194. Xchiffres.
  1195. X
  1196. XEnfin, pour commencer une nouvelle partie, il suffit de cliquer sur le petit
  1197. Xbonhomme jaune au dessus du tableau de jeu.
  1198. X
  1199. X.SH OPTIONS
  1200. X
  1201. X.PP
  1202. X.TP 20
  1203. X.B -display \fIdisplay\fP
  1204. XAffiche le jeu sur l'ecran
  1205. X.I display
  1206. X(utile si le programme tourne sur une machine avec affichage sur une autre).
  1207. X.PP
  1208. X.TP 20
  1209. X.B -l \fIlignes\fP
  1210. XFixe a
  1211. X.I lignes
  1212. Xle nombre de lignes du tableau de jeu (16 par defaut).
  1213. X.PP
  1214. X.TP 20
  1215. X.B -c \fIcolonnes\fP
  1216. XFixe a
  1217. X.I colonnes
  1218. Xle nombre de colonnes du tableau de jeu (30 par defaut).
  1219. X.PP
  1220. X.TP 20
  1221. X.B -m \fImines\fP
  1222. XFixe a
  1223. X.I mines
  1224. Xle nombre de mines (par defaut nombre_de_lignes * nombre_de_colonnes / 4.8). Si
  1225. X.I mines
  1226. Xest plus grand que le nombre de cases du tableau de jeu, cette formule est
  1227. Xautomatiquement utilisee.
  1228. X.PP
  1229. X.TP 20
  1230. X.B -ouvre
  1231. Xtrouve automatiquement une ouverture au debut du jeu.
  1232. X
  1233. X.SH BUGS
  1234. X
  1235. XJ'ai concu
  1236. X.I xdemineur
  1237. Xde telle sorte qu'il fonctionne sur HP et sur Sun, mais je ne sais rien
  1238. Xde son comportement sur d'autres systemes.
  1239. X
  1240. XVeuillez me signaler tous les bugs de
  1241. X.I xdemineur
  1242. Xque vous pourrez trouver, ainsi que les adaptations que vous avez faites
  1243. X(nouvelles fonctions du jeu, modification pour execution sur certains
  1244. Xsystemes...) par
  1245. X.I mail baudoin@ensta.fr.
  1246. X
  1247. X.SH COPYRIGHT
  1248. X
  1249. XVous avez le droit d'utiliser et de distribuer
  1250. X.I xdemineur
  1251. Xet sa documentation pourvu que cette notice de copyright apparaisse sur
  1252. Xtoutes les copies et que vous ne tiriez aucun profit de mon programme.
  1253. X
  1254. X.SH AUTEUR
  1255. XMarc Baudoin (baudoin@ensta.fr)
  1256. X
  1257. X        |\\
  1258. X      |\\| \\
  1259. X      |//  )
  1260. X    |\\ /  /        /\\/\\_
  1261. X    |//  /        /. . /
  1262. X  |\\ /  /     ___/    |_
  1263. X  |//  /     (____/    /_/\\_
  1264. X   |__|      (_____/ __     >
  1265. X /| ___  ________ _< \\ \\__  >
  1266. X \\|| __\\| _|_   _/ \\\\ \\___\\/      \" je sais, c'est pas beau
  1267. X   | __\\____ | |/ _ \\\\    >
  1268. X /||___\\_____|___/ \\_\\\\  _>
  1269. X \\|____           ____ \\|
  1270. X   \\   \\_________/   /
  1271. X    \\   _    _      /
  1272. X     \\_//   //_____/
  1273. X       (_   \\ (_  _\\
  1274. X         |/\\|   \\/
  1275. X
  1276. X
  1277. XEcole Nationale Superieure de Techniques Avancees (ENSTA)
  1278. X.br
  1279. X32, boulevard Victor - 75015 Paris - France
  1280. END_OF_FILE
  1281. if test 3940 -ne `wc -c <'xdemineur.man'`; then
  1282.     echo shar: \"'xdemineur.man'\" unpacked with wrong size!
  1283. fi
  1284. # end of 'xdemineur.man'
  1285. fi
  1286. echo shar: End of archive 2 \(of 3\).
  1287. cp /dev/null ark2isdone
  1288. MISSING=""
  1289. for I in 1 2 3 ; do
  1290.     if test ! -f ark${I}isdone ; then
  1291.     MISSING="${MISSING} ${I}"
  1292.     fi
  1293. done
  1294. if test "${MISSING}" = "" ; then
  1295.     echo You have unpacked all 3 archives.
  1296.     rm -f ark[1-9]isdone
  1297. else
  1298.     echo You still need to unpack the following archives:
  1299.     echo "        " ${MISSING}
  1300. fi
  1301. ##  End of shell archive.
  1302. exit 0
  1303.