Skip to content

Commit 8b0fd3e

Browse files
fix bug in piece-square tables setup
1 parent b127c0f commit 8b0fd3e

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

eval.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ var kingPst = [2][2][64]int{ // Black
115115
}
116116

117117
var squareMirror = [64]int{
118-
H1, H2, H3, H4, H5, H6, H7, H8,
119-
G1, G2, G3, G4, G5, G6, G7, G8,
120-
F1, F2, F3, F4, F5, F6, F7, F8,
121-
E1, E2, E3, E4, E5, E6, E7, E8,
122-
D1, D2, D3, D4, D5, D6, D7, D8,
123-
C1, C2, C3, C4, C5, C6, C7, C8,
124-
B1, B2, B3, B4, B5, B6, B7, B8,
125-
A1, A2, A3, A4, A5, A6, A7, A8,
118+
A8, B8, C8, D8, E8, F8, G8, H8,
119+
A7, B7, C7, D7, E7, F7, G7, H7,
120+
A6, B6, C6, D6, E6, F6, G6, H6,
121+
A5, B5, C5, D5, E5, F5, G5, H5,
122+
A4, B4, C4, D4, E4, F4, G4, H4,
123+
A3, B3, C3, D3, E3, F3, G3, H3,
124+
A2, B2, C2, D2, E2, F2, G2, H2,
125+
A1, B1, C1, D1, E1, F1, G1, H1,
126126
}
127127

128128
var kingThreatBonus = [64]int{

uci.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ func (uci *UCIAdapter) Read(reader *bufio.Reader) {
8282
if err != nil {
8383
fmt.Printf("info string error opening file: %v\n", err)
8484
} else {
85-
fmt.Printf("info string log file created\n")
86-
8785
dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
8886
if err != nil {
8987
// log.Fatal(err)
9088
}
91-
fmt.Println(dir)
89+
fmt.Printf("info string log file created: %s\n", dir)
9290
}
9391

9492
defer f.Close()

0 commit comments

Comments
 (0)