-
Notifications
You must be signed in to change notification settings - Fork 100
/
debug.html
49 lines (45 loc) · 1.64 KB
/
debug.html
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
<!-- saved from url=(0014)about:internet -->
<html>
<head>
<title>Test harness</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="js/garbochess.js"></script>
<script type="text/javascript" src="tests/openings.js"></script>
<script type="text/javascript" src="tests/perft-positions.js"></script>
<script type="text/javascript" src="js/bench.js"></script>
<script type="text/javascript" src="js/boardui.js"></script>
<script type="text/javascript" src="js/testing.js"></script>
<script type="text/javascript">
function FinishPlyCallback(move) { console.log("depth:" + move); };
$(document).ready(function () {
ResetGame();
g_timeout = 1000000;
//InitializeFromFen("r4r2/p1p4p/1p3kp1/2qn1BR1/8/3p3P/P3QP1K/8 w - -");
InitializeFromFen("8/1r1n3k/1p6/2pP4/1R1N4/8/7P/7K w - c6 0 2");
//InitializeFromFen("8/8/5k2/8/4K3/4P3/8/8 w - - 1 5");
//InitializeFromFen("4k3/8/3K4/4P3/8/8/8/8 w - - 0 3 ");
Search(null, 5, FinishPlyCallback);
//RunPerft();
//g_timeout = 10000;
//PerfTests.benchmark();
//TestGames();
// End debug
});
</script>
<style type="text/css">
#FenTextBox {
width: 400px;
}
</style>
</head>
<body>
<center>
<div id='board'>
</div>
<span id='output'>output</span><br/>
<textarea cols='50' rows='6' id='PgnTextBox'></textarea><br/>
FEN: <input id='FenTextBox'/>
</center>
</body>
</html>