Skip to content

Commit 806cf35

Browse files
2 parents 825bb1a + 7c61fb5 commit 806cf35

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,21 @@ Have a look in the Dist directory for releases. Some more stable/official ones w
1313
Quite poor for a chess engine (around 2300) but already way to strong for me !
1414

1515
```
16-
Name Elo +/- Games Score Draws
17-
0 Minic 71 12 2593 60.1% 18.4%
18-
1 sungorus64 103 44 216 64.4% 17.6%
19-
2 Bitfoot 103 43 216 64.4% 20.4%
20-
3 dorpsgek 29 40 216 54.2% 25.9%
21-
4 Horizon_4_4 14 42 216 52.1% 18.1%
22-
5 zevra -18 39 216 47.5% 30.1%
23-
6 asymptote -66 42 217 40.6% 20.3%
24-
7 ct800_v1.11_x64 -75 44 216 39.4% 15.7%
25-
8 weini1 -103 45 216 35.6% 14.8%
26-
9 rattatechess_nosferatu -120 44 216 33.3% 18.5%
27-
10 simplex -182 48 216 25.9% 13.9%
28-
11 fairymax -338 55 216 12.5% 17.6%
29-
12 tscp181 -396 74 216 9.3% 7.4%
16+
Rank Name Elo +/- Games Score Draws
17+
0 Minic 47 7 7122 56.8% 15.9%
18+
1 fruit_21 351 39 548 88.3% 11.3%
19+
2 sungorus64 89 27 548 62.6% 18.2%
20+
3 Bitfoot 73 27 548 60.4% 15.3%
21+
4 dorpsgek 20 25 548 52.9% 28.5%
22+
5 Horizon_4_4 4 27 548 50.5% 13.5%
23+
6 zevra -30 25 547 45.7% 27.4%
24+
7 rattatechess_nosferatu -68 28 548 40.3% 13.1%
25+
8 weini1 -68 28 547 40.3% 11.9%
26+
9 ct800_v1.11_x64 -77 27 548 39.1% 17.2%
27+
10 asymptote -91 27 548 37.2% 19.0%
28+
11 simplex -169 30 548 27.5% 14.4%
29+
12 fairymax -351 39 548 11.7% 10.9%
30+
13 tscp181 -498 57 548 5.4% 5.3%
3031
```
3132

3233
## How to compile:

minic.cc

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -991,14 +991,14 @@ bool readFEN(const std::string & fen, Position & p, bool silent = false){
991991
assert(p.ep == INVALIDSQUARE || (SQRANK(p.ep) == 2 || SQRANK(p.ep) == 5));
992992

993993
// read 50 moves rules
994-
if (strList.size() >= 5) p.fifty = readFromString<unsigned char>(strList[4]);
994+
if (strList.size() >= 5) p.fifty = (unsigned char)readFromString<int>(strList[4]);
995995
else p.fifty = 0;
996996

997997
// read number of move
998-
if (strList.size() >= 6) p.moves = readFromString<unsigned char>(strList[5]);
998+
if (strList.size() >= 6) p.moves = (unsigned char)readFromString<int>(strList[5]);
999999
else p.moves = 1;
10001000

1001-
p.ply = (p.moves - 1) * 2 + 1 + p.c == Co_Black ? 1 : 0;
1001+
p.ply = (int(p.moves) - 1) * 2 + 1 + p.c == Co_Black ? 1 : 0;
10021002

10031003
p.h = computeHash(p);
10041004

@@ -1119,13 +1119,18 @@ int GetNextMSecPerMove(const Position & p){
11191119
else if ( nbMoveInTC > 0){ // mps is given
11201120
assert(msecWholeGame > 0);
11211121
assert(nbMoveInTC > 0);
1122+
LogIt(logInfo) << "TC mode";
11221123
ms = int(0.95 * (msecWholeGame+((msecInc>0)?nbMoveInTC*msecInc:0)) / (float)(nbMoveInTC+0.5));
11231124
}
11241125
else{ // mps is not given
11251126
///@todo something better using the real time command
11261127
// sum(0.85/(40+3.5*(i-8)),i=1..200) = 0.95
1127-
const int nmoves = int(40 + (p.moves-8)*3.5f); // let's start for a 40 moves and decrease time after that
1128-
ms = int(0.85 * (msecWholeGame+((msecInc>0)?p.moves*msecInc:0))/ (float)nmoves);
1128+
LogIt(logInfo) << "Fix time mode";
1129+
const int nmoves = int(40 + (int(p.moves)-8)*3.5f); // let's start for a 40 moves and decrease time after that
1130+
LogIt(logInfo) << "nmoves " << nmoves;
1131+
LogIt(logInfo) << "p.moves " << int(p.moves);
1132+
assert(nmoves > 0);
1133+
ms = int(0.85 * (msecWholeGame+((msecInc>0)?int(p.moves)*msecInc:0))/ (float)nmoves);
11291134
}
11301135
return ms;
11311136
}

0 commit comments

Comments
 (0)