Skip to content

Commit e643fef

Browse files
committed
close to stable completion, arena testing soon for comparisons
1 parent 12d08b7 commit e643fef

4 files changed

+25
-15
lines changed

challenge_manual.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package main
22

33
import (
44
"fmt"
5+
"math"
56

67
"github.com/0hq/chess"
78
)
89

910
func challenge_manual(engine Engine, play_as_color chess.Color, game *chess.Game) {
10-
max_moves := 100
11+
max_moves := math.MaxInt
1112
// game.UseNotation(global_AlgebraicNotation)
1213

1314
out("Manual challenge started.")

challenge_stockfish.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package main
22

33
import (
4+
"math"
45
"time"
56

67
"github.com/0hq/chess"
78
"github.com/0hq/chess/uci"
89
)
910

1011
func challenge_stockfish(engine Engine, play_as_color chess.Color, game *chess.Game) {
11-
max_moves := 100
12+
max_moves := math.MaxInt
1213
// game.UseNotation(global_AlgebraicNotation)
1314

1415
eng, err := uci.New("stockfish")

engine_version0.2.2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type t_engine_0dot2dot2 struct {
2323

2424
var engine_0dot2dot2 = t_engine_0dot2dot2{
2525
EngineClass{
26-
name: "Engine 0.2.2",
26+
name: "Engine 0.2.2 (deprecated)",
2727
features: EngineFeatures{
2828
plain: true,
2929
parallel: false,

main.go

+20-12
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,26 @@ import (
3434
// MTD(f)
3535
// MTD(bi)
3636
37-
50 move rule.
38-
Insufficient material.
39-
Opening book analysis. (fuck)
40-
Lines via linked list.
4137
PSTO evaluation.
4238
Tapered eval
4339
Endgames
40+
50 move rule.
41+
Insufficient material.
42+
Opening book analysis. (fuck)
4443
Better move ordering.
4544
SEE
4645
History heuristic
46+
Internal iterative deepening
47+
Quiescence check escapes.
48+
Fix Zobrist castles and en passant
49+
Mate distance pruning
50+
Root PVS
51+
Aspiration window
52+
4753
Parallel search via LAZY SMP
4854
55+
Lines via linked list.
56+
Build PVS to benchmark.
4957
Investigate 0.3.1 beating 0.3.4 in performance. Probably just hashing slowdowns from static?
5058
Make total nodes trustable. Local tracking.
5159
@@ -109,14 +117,14 @@ func main() {
109117
out("Running main program.", "\n")
110118
defer exit()
111119

112-
inner := new_engine_0dot4dot1()
113-
engine := new_engine(&inner, 1, nil)
114-
simple_tests(engine)
120+
// inner := new_engine_0dot4dot1()
121+
// engine := new_engine(&inner, 1, nil)
122+
// simple_tests(engine)
115123
// eigenmann_tests(engine)
116124

117125
// mini_performance_challenge()
118126
// mini_test_transposition()
119-
// mini_self_challenge()
127+
mini_self_challenge()
120128
// mini_challenge_stockfish()
121129
}
122130

@@ -150,10 +158,10 @@ func mini_performance_challenge() {
150158

151159
func mini_self_challenge() {
152160
game := game_from_fen(CHESS_START_POSITION)
153-
engine1 := new_engine_0dot4dot0()
154-
wrapped1 := wrap_engine(&engine1, 5, game)
155-
engine2 := new_engine_0dot4dot1()
156-
wrapped2 := wrap_engine(&engine2, 5, game)
161+
// engine1 := new_engine_0dot4dot1()
162+
wrapped1 := wrap_engine(&engine_0dot3dot4, 5, game)
163+
// engine2 := new_engine_0dot4dot1()
164+
wrapped2 := wrap_engine(&engine_0dot2dot1, 5, game)
157165
challenge_self(wrapped1, wrapped2, game)
158166
}
159167

0 commit comments

Comments
 (0)