-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPositions.lua
executable file
·49 lines (34 loc) · 989 Bytes
/
Positions.lua
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
Positions = {}
Positions.empty = {
white = {},
black = {}
}
Positions.initial = {
white = { "a2","b2","c2","d2","e2","f2","g2","h2","ra1","rh1","ke1","bc1","bf1","qd1", "nb1", "ng1"},
black = { "a7","b7","c7","d7","e7","f7","g7","h7","ra8","rh8","ke8","bc8","bf8","qd8", "nb8", "ng8"}
}
Positions.castleCheck = {
white = { "a2","b2","c2","d2","e2","f2","g2","h2","ra1","nb1","rh1","ke1"},
black = { "a7","b7","c7","d7","e7","f7","g7","h7","ra8","rh8","ke8" }
}
Positions.amPassan = {
white = { "a2","b2","c2","d2","e2","f2","g2","h2","ra1","rh1","ke1"},
black = { "a7","b7","c7","d7","e4","f7","g7","h7","ra8","rh8","ke8" }
}
Positions.singlePawn = {
white = {"b2"},
black = {}
}
Positions.stalemate1 = {
white = {'be3', 'rb3'},
black = {'ka8'}
}
Positions.stalemate2 = {
white = {'kb1', 'nf4', 'ne6'},
black = {'kh6','h7'}
}
Positions.stalemate3 = {
white = {'a4','kb3','bc4','rd1','f5','ng6'},
black = {'a5','b4','ke8','f6','g7'}
}
return Positions