Mille Bornes - French option
colonel at gloria.UUCP
colonel at gloria.UUCP
Sun Jun 17 14:18:14 AEST 1984
[Roue de Secours]
Here are the diffs on 4.2bsd Mille Bornes to implement the
French option. (Line numbers on the new version may not
come out right.)
@@@@@@@@@@@@@@@@@@@@
diff /usr/src/games/mille/Makefile ./Makefile
2c2
< # mille bourne game makefile
---
> # mille bornes game makefile
diff /usr/src/games/mille/extern.c ./extern.c
3,6d2
< /*
< * @(#)extern.c 1.1 (Berkeley) 4/1/82
< */
<
8a5
> French, /* set if cards are in French */
17c14,15
< *_cn[NUM_CARDS] = { /* Card name buffer */
---
> **_cn, /* Card name buffer */
> *_Ecn[NUM_CARDS] = { /* English card name buffer */
39c37,59
< **C_name = &_cn[1]; /* Card names */
---
> *_Fcn[NUM_CARDS] = { /* French card name buffer */
> "",
> "25",
> "50",
> "75",
> "100",
> "200",
> "Panne d'Essence",
> "Creve!",
> "Accident",
> "Stop",
> "Limite de Vitesse",
> "Essence",
> "Roue de Secours",
> "Reparations",
> "Roulez",
> "Fin de Limite",
> "Citerne d'Essence",
> "Increvable",
> "As du Volant",
> "Vehic. Prioritaire"
> },
> **C_name; /* Card names */
diff /usr/src/games/mille/mille.c ./mille.c
0a1,4
> /*
> * French option added. --Col. G. L. Sicherman (sunybcs!gloria!colonel)
> */
>
7,10d10
< /*
< * @(#)mille.c 1.3 (Berkeley) 5/10/83
< */
<
11a12,13
> extern bool French;
> extern char **_cn, *_Fcn[], *_Ecn[], **C_name;
34a37,46
> # endif
> while (ac > 1 && av[1][0]=='-') {
> av++;
> ac--;
> switch (av[0][1]) {
> case 'f':
> French++;
> break;
> default:
> bomb();
37d48
< # endif
45,46c56
< printf("usage: milles [ restore_file ]\n");
< exit(-1);
---
> bomb();
48a59,60
> _cn = French? _Fcn: _Ecn;
> C_name = &(_cn[1]);
135a143,147
> }
>
> bomb() {
> printf("usage: mille [ -f ] [ restore_file ]\n");
> exit(-1);
diff /usr/src/games/mille/mille.h ./mille.h
5,8d4
< * @(#)mille.h 1.1 (Berkeley) 4/1/82
< */
<
< /*
25c17
< # define NUM_SAFE 4 /* number of saftey cards */
---
> # define NUM_SAFE 4 /* number of safety cards */
78c70
< # define S_DRIVE_SAFE 2 /* Driveing safety card index */
---
> # define S_DRIVE_SAFE 2 /* Driving safety card index */
diff /usr/src/games/mille/move.c ./move.c
42a43,46
> if (issafety(Discard)) {
> error("not that one!");
> break;
> }
--
Col. G. L. Sicherman
...seismo!rochester!rocksvax!sunybcs!gloria!colonel
More information about the Comp.sources.unix
mailing list