From: Laurent MAZET Date: Thu, 13 Jun 2024 10:05:49 +0000 (+0200) Subject: rename files (for dos) X-Git-Tag: v1.0~22 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=6f3cda2dbbcbaed5ef817a5415ded6cfacbffde1;p=scrabble.git rename files (for dos) --- diff --git a/15x15-7.h b/15x15-7.h new file mode 100644 index 0000000..81c231a --- /dev/null +++ b/15x15-7.h @@ -0,0 +1,22 @@ +#ifndef __15X15_7__ +#define __15X15_7__ + +#include "type.h" + +static board_t _board_15x15_7 = +{ + 15, /* xsize */ + 15, /* ysize */ + 1, /* factor */ + 7, /* length */ + 50, /* premium */ + "A1\0A8\0A15\0H1\0H15\0O1\0O8\0O15\0", /* TW */ + "B2\0B14\0C3\0C13\0D4\0D12\0E5\0E11\0K5\0K11\0L4\0L12\0M3\0M13\0N2\0N14\0", /* DW */ + "B6\0B10\0F2\0F6\0F10\0F14\0J2\0J6\0J10\0J14\0N6\0N10\0", /* TL */ + "A4\0A12\0C7\0C9\0D1\0D8\0D15\0G3\0G7\0G9\0G13\0H4\0H12\0I3\0I7\0I9\0I13\0L1\0L8\0L15\0M7\0M9\0O4\0O12\0", /* DL */ + "H8\0" /* CS */ +}; + +#endif /* __15X15_7__ */ + +/* vim: set ts=4 sw=4 et: */ diff --git a/22x22-7.h b/22x22-7.h new file mode 100644 index 0000000..4fb6dd4 --- /dev/null +++ b/22x22-7.h @@ -0,0 +1,18 @@ +#ifndef __22X22_7__ +#define __22X22_7__ + +#include "type.h" + +static board_t _board_22x22_7 = +{ + 22, 22, 2, 7, 50, + "A1\0A8\0A15\0A22\0H1\0H8\0H15\0H22\0O1\0O8\0O15\0O22\0V1\0V8\0V15\0V22\0", + "B2\0B10\0B21\0C3\0C20\0D4\0D12\0D19\0E5\0E18\0I9\0I14\0J21\0K4\0L12\0L19\0M2\0N9\0N14\0R5\0R18\0S4\0S11\0S19\0T3\0T20\0U2\0U13\0U21\0", + "B6\0B17\0E14\0F2\0F6\0F10\0F17\0F21\0I5\0J13\0J17\0M6\0M10\0N18\0Q2\0Q6\0Q13\0Q17\0Q21\0R9\0U6\0U17\0", + "A4\0A12\0A19\0B13\0C7\0C11\0C16\0D1\0D8\0D15\0D22\0E9\0F13\0G3\0G7\0G11\0G16\0G20\0H4\0H12\0H19\0I18\0J2\0J6\0J10\0K1\0K8\0K16\0K20\0L3\0L7\0L15\0L22\0M13\0M17\0M21\0N5\0O4\0O11\0O19\0P3\0P7\0P12\0P16\0P20\0Q10\0R14\0S1\0S8\0S15\0S22\0T7\0T12\0T16\0U10\0V4\0V11\0V19\0", + "K11\0" +}; + +#endif /* __22X22_7__ */ + +/* vim: set ts=4 sw=4 et: */ diff --git a/8x15-7.h b/8x15-7.h new file mode 100644 index 0000000..4e7a6fe --- /dev/null +++ b/8x15-7.h @@ -0,0 +1,18 @@ +#ifndef __8X15_7__ +#define __8X15_7__ + +#include "type.h" + +static board_t _board_8x15_7 = +{ + 15, 8, 0.6, 7, 50, + "A1\0A8\0A15\0H1\0H8\0H15\0", + "B2\0C3\0C10\0E9\0F6\0F13\0G14\0", + "B6\0B13\0C14\0D11\0E5\0F2\0G3\0G10\0", + "A5\0A12\0B4\0B9\0B11\0C8\0D2\0D4\0D15\0E1\0E12\0E14\0F8\0G5\0G7\0G12\0H4\0H11\0", + "D7\0" +}; + +#endif /* __8X15_7__ */ + +/* vim: set ts=4 sw=4 et: */ diff --git a/8x8-7.h b/8x8-7.h new file mode 100644 index 0000000..a951570 --- /dev/null +++ b/8x8-7.h @@ -0,0 +1,18 @@ +#ifndef __8X8_7__ +#define __8X8_7__ + +#include "type.h" + +static board_t _board_8x8_7 = +{ + 8, 8, 0.3, 7, 50, + "A1\0A8\0H1\0H8\0", + "B2\0B7\0E5\0G2\0G7\0", + "B5\0E2\0D7\0G4\0", + "A4\0C3\0C6\0D1\0E8\0F3\0F6\0H5\0", + "D4\0" +}; + +#endif /* __8X8_7__ */ + +/* vim: set ts=4 sw=4 et: */ diff --git a/board_15x15-7.h b/board_15x15-7.h deleted file mode 100644 index 81c231a..0000000 --- a/board_15x15-7.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef __15X15_7__ -#define __15X15_7__ - -#include "type.h" - -static board_t _board_15x15_7 = -{ - 15, /* xsize */ - 15, /* ysize */ - 1, /* factor */ - 7, /* length */ - 50, /* premium */ - "A1\0A8\0A15\0H1\0H15\0O1\0O8\0O15\0", /* TW */ - "B2\0B14\0C3\0C13\0D4\0D12\0E5\0E11\0K5\0K11\0L4\0L12\0M3\0M13\0N2\0N14\0", /* DW */ - "B6\0B10\0F2\0F6\0F10\0F14\0J2\0J6\0J10\0J14\0N6\0N10\0", /* TL */ - "A4\0A12\0C7\0C9\0D1\0D8\0D15\0G3\0G7\0G9\0G13\0H4\0H12\0I3\0I7\0I9\0I13\0L1\0L8\0L15\0M7\0M9\0O4\0O12\0", /* DL */ - "H8\0" /* CS */ -}; - -#endif /* __15X15_7__ */ - -/* vim: set ts=4 sw=4 et: */ diff --git a/board_22x22-7.h b/board_22x22-7.h deleted file mode 100644 index 4fb6dd4..0000000 --- a/board_22x22-7.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __22X22_7__ -#define __22X22_7__ - -#include "type.h" - -static board_t _board_22x22_7 = -{ - 22, 22, 2, 7, 50, - "A1\0A8\0A15\0A22\0H1\0H8\0H15\0H22\0O1\0O8\0O15\0O22\0V1\0V8\0V15\0V22\0", - "B2\0B10\0B21\0C3\0C20\0D4\0D12\0D19\0E5\0E18\0I9\0I14\0J21\0K4\0L12\0L19\0M2\0N9\0N14\0R5\0R18\0S4\0S11\0S19\0T3\0T20\0U2\0U13\0U21\0", - "B6\0B17\0E14\0F2\0F6\0F10\0F17\0F21\0I5\0J13\0J17\0M6\0M10\0N18\0Q2\0Q6\0Q13\0Q17\0Q21\0R9\0U6\0U17\0", - "A4\0A12\0A19\0B13\0C7\0C11\0C16\0D1\0D8\0D15\0D22\0E9\0F13\0G3\0G7\0G11\0G16\0G20\0H4\0H12\0H19\0I18\0J2\0J6\0J10\0K1\0K8\0K16\0K20\0L3\0L7\0L15\0L22\0M13\0M17\0M21\0N5\0O4\0O11\0O19\0P3\0P7\0P12\0P16\0P20\0Q10\0R14\0S1\0S8\0S15\0S22\0T7\0T12\0T16\0U10\0V4\0V11\0V19\0", - "K11\0" -}; - -#endif /* __22X22_7__ */ - -/* vim: set ts=4 sw=4 et: */ diff --git a/board_8x15-7.h b/board_8x15-7.h deleted file mode 100644 index 4e7a6fe..0000000 --- a/board_8x15-7.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __8X15_7__ -#define __8X15_7__ - -#include "type.h" - -static board_t _board_8x15_7 = -{ - 15, 8, 0.6, 7, 50, - "A1\0A8\0A15\0H1\0H8\0H15\0", - "B2\0C3\0C10\0E9\0F6\0F13\0G14\0", - "B6\0B13\0C14\0D11\0E5\0F2\0G3\0G10\0", - "A5\0A12\0B4\0B9\0B11\0C8\0D2\0D4\0D15\0E1\0E12\0E14\0F8\0G5\0G7\0G12\0H4\0H11\0", - "D7\0" -}; - -#endif /* __8X15_7__ */ - -/* vim: set ts=4 sw=4 et: */ diff --git a/board_8x8-7.h b/board_8x8-7.h deleted file mode 100644 index a951570..0000000 --- a/board_8x8-7.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __8X8_7__ -#define __8X8_7__ - -#include "type.h" - -static board_t _board_8x8_7 = -{ - 8, 8, 0.3, 7, 50, - "A1\0A8\0H1\0H8\0", - "B2\0B7\0E5\0G2\0G7\0", - "B5\0E2\0D7\0G4\0", - "A4\0C3\0C6\0D1\0E8\0F3\0F6\0H5\0", - "D4\0" -}; - -#endif /* __8X8_7__ */ - -/* vim: set ts=4 sw=4 et: */ diff --git a/constant.c b/constant.c index a8fc214..0e0b000 100644 --- a/constant.c +++ b/constant.c @@ -5,10 +5,10 @@ #include "constant.h" -#include "board_8x8-7.h" -#include "board_8x15-7.h" -#include "board_15x15-7.h" -#include "board_22x22-7.h" +#include "8x8-7.h" +#include "8x15-7.h" +#include "15x15-7.h" +#include "22x22-7.h" board_t *getboard (char *name) {