aboutsummaryrefslogtreecommitdiffstats
path: root/backend/ts/gameBoard.ts
blob: 89a8902e0393f877c9885e0488c6c9ed473dc1cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import { Color, GameBoard } from '../../helpers/helpersBack';
export const gameBoard: GameBoard = {
    map: [
        { y: 0, x: 4, chequers: [], start: Color.red },
        { y: 1, x: 4, chequers: [], start: -1 },
        { y: 2, x: 4, chequers: [], start: -1 },
        { y: 3, x: 4, chequers: [], start: -1 },
        { y: 4, x: 4, chequers: [], start: -1 },
        { y: 4, x: 3, chequers: [], start: -1 },
        { y: 4, x: 2, chequers: [], start: -1 },
        { y: 4, x: 1, chequers: [], start: -1 },
        { y: 4, x: 0, chequers: [], start: -1 },
        { y: 5, x: 0, chequers: [], start: -1 },
        { y: 6, x: 0, chequers: [], start: Color.blue },
        { y: 6, x: 1, chequers: [], start: -1 },
        { y: 6, x: 2, chequers: [], start: -1 },
        { y: 6, x: 3, chequers: [], start: -1 },
        { y: 6, x: 4, chequers: [], start: -1 },
        { y: 7, x: 4, chequers: [], start: -1 },
        { y: 8, x: 4, chequers: [], start: -1 },
        { y: 9, x: 4, chequers: [], start: -1 },
        { y: 10, x: 4, chequers: [], start: -1 },
        { y: 10, x: 5, chequers: [], start: -1 },
        { y: 10, x: 6, chequers: [], start: Color.green },
        { y: 9, x: 6, chequers: [], start: -1 },
        { y: 8, x: 6, chequers: [], start: -1 },
        { y: 7, x: 6, chequers: [], start: -1 },
        { y: 6, x: 6, chequers: [], start: -1 },
        { y: 6, x: 7, chequers: [], start: -1 },
        { y: 6, x: 8, chequers: [], start: -1 },
        { y: 6, x: 9, chequers: [], start: -1 },
        { y: 6, x: 10, chequers: [], start: -1 },
        { y: 5, x: 10, chequers: [], start: -1 },
        { y: 4, x: 10, chequers: [], start: Color.yellow },
        { y: 4, x: 9, chequers: [], start: -1 },
        { y: 4, x: 8, chequers: [], start: -1 },
        { y: 4, x: 7, chequers: [], start: -1 },
        { y: 4, x: 6, chequers: [], start: -1 },
        { y: 3, x: 6, chequers: [], start: -1 },
        { y: 2, x: 6, chequers: [], start: -1 },
        { y: 1, x: 6, chequers: [], start: -1 },
        { y: 0, x: 6, chequers: [], start: -1 },
        { y: 0, x: 5, chequers: [], start: -1 },
    ],
    // @ts-ignore
    bases: {
        [Color.red]: [
            { x: 1, y: 1, chequer: -1 },
            { x: 1, y: 2, chequer: -1 },
            { x: 2, y: 2, chequer: -1 },
            { x: 2, y: 1, chequer: -1 },
        ],
        [Color.blue]: [
            { x: 8, y: 1, chequer: -1 },
            { x: 9, y: 1, chequer: -1 },
            { x: 9, y: 2, chequer: -1 },
            { x: 8, y: 2, chequer: -1 },
        ],
        [Color.green]: [
            { x: 8, y: 8, chequer: -1 },
            { x: 9, y: 8, chequer: -1 },
            { x: 9, y: 9, chequer: -1 },
            { x: 8, y: 9, chequer: -1 },
        ],
        [Color.yellow]: [
            { x: 1, y: 8, chequer: -1 },
            { x: 2, y: 8, chequer: -1 },
            { x: 2, y: 9, chequer: -1 },
            { x: 1, y: 9, chequer: -1 },
        ],
    },
    // @ts-ignore
    homes: {
        [Color.red]: [
            { x: 5, y: 1, chequer: -1 },
            { x: 5, y: 2, chequer: -1 },
            { x: 5, y: 3, chequer: -1 },
            { x: 5, y: 4, chequer: -1 },
        ],
        [Color.blue]: [
            { x: 1, y: 5, chequer: -1 },
            { x: 2, y: 5, chequer: -1 },
            { x: 3, y: 5, chequer: -1 },
            { x: 4, y: 5, chequer: -1 },
        ],
        [Color.green]: [
            { x: 5, y: 9, chequer: -1 },
            { x: 5, y: 8, chequer: -1 },
            { x: 5, y: 7, chequer: -1 },
            { x: 5, y: 6, chequer: -1 },
        ],
        [Color.yellow]: [
            { x: 9, y: 5, chequer: -1 },
            { x: 8, y: 5, chequer: -1 },
            { x: 7, y: 5, chequer: -1 },
            { x: 6, y: 5, chequer: -1 },
        ],
    }
}