How to use Stockfish in console in a more practical way when you want to play with White or Black from startposition!

In console you need to know the UCI commands/protocol ,you find them here in this link: http://wbec-ridderkerk.nl/html/UCIProtocol.html

All nice ,but how to use them? how you start a game  with White or Black..

With uci you get Stockfish's settings... If you don't change anything it uses the default settings, like his skill level = 20 -> is max. playing strength

So like below 1st line in BOLD: setoption name Skill level value 1 (Enter) I bring his strength to lowest level = 1

Any setting in uci you can change like this with setoption name .... value ... (otherwise default settings are used)

If you want to play with white,2nd line: position startpos moves d2d4 (Enter) -> here I play d2d4

3rd line: how much time do I give him to think: go movetime 10 (Enter) (or any time you want)

starts calculating, and gets the answer: bestmove c7c6 (and ponder c2c4, is a move proposal, or move he expects from you)

To play the next move, you must enter all the moves again!!

position startpos moves d2d4 c7c6 c2c4 (Enter) (d2d4 my first move,c7c6 Stockfish move,c2c4 my next move)

give the time again: go movetime 10 (Enter)

and now I get the counter move bestmove d7d5 ..and so on....

Here under Stockfish 14.1 in console when you dubble click stockfish.exe and type the BOLD lines one by one,explained above ,each followed with Enter:

Stockfish 14.1 by the Stockfish developers (see AUTHORS file)
setoption name Skill level value 1
position startpos moves d2d4
go movetime 10
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score cp -31 nodes 74 nps 37000 tbhits 0 time 2 pv d7d5
info depth 2 seldepth 2 multipv 1 score cp 4 nodes 154 nps 77000 tbhits 0 time 2 pv d7d5 a2a3
info depth 3 seldepth 3 multipv 1 score cp -18 nodes 387 nps 193500 tbhits 0 time 2 pv d7d5 e2e3 g8f6
info depth 4 seldepth 4 multipv 1 score cp -14 nodes 1183 nps 394333 tbhits 0 time 3 pv d7d5 c1f4 g8f6
info depth 5 seldepth 5 multipv 1 score cp -14 nodes 2891 nps 722750 tbhits 0 time 4 pv g8f6 c2c4 e7e6 g1f3 d7d5
info depth 6 seldepth 6 multipv 1 score cp -29 nodes 6012 nps 1002000 tbhits 0 time 6 pv g8f6 c2c4 e7e6 b1c3 d7d5 c4d5 e6d5
info depth 7 seldepth 8 multipv 1 score cp -19 nodes 16085 nps 1462272 tbhits 0 time 11 pv g8f6 c2c4 e7e6 e2e3 d7d5 g1f3 c7c5
bestmove c7c6 ponder c2c4
position startpos moves d2d4 c7c6 c2c4
go movetime 10
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score cp -45 nodes 102 nps 51000 tbhits 0 time 2 pv d7d5
info depth 2 seldepth 2 multipv 1 score cp -45 nodes 229 nps 114500 tbhits 0 time 2 pv d7d5 e2e3
info depth 3 seldepth 3 multipv 1 score cp -45 nodes 445 nps 148333 tbhits 0 time 3 pv d7d5 e2e3 g8f6
info depth 4 seldepth 4 multipv 1 score cp -45 nodes 809 nps 269666 tbhits 0 time 3 pv d7d5 g1f3 e7e6 e2e3 g8f6
info depth 5 seldepth 5 multipv 1 score cp -45 nodes 1602 nps 534000 tbhits 0 time 3 pv d7d5 e2e3 g8f6 g1f3 e7e6
info depth 6 seldepth 6 multipv 1 score cp -45 nodes 3655 nps 913750 tbhits 0 time 4 pv d7d5 e2e3 g8f6 g1f3 e7e6 b1c3
info depth 7 seldepth 8 multipv 1 score cp -42 nodes 10641 nps 1330125 tbhits 0 time 8 pv d7d5 e2e3 g8f6 c1d2 a7a6 g1f3 e7e6 b1c3
info depth 8 seldepth 10 multipv 1 score cp -50 nodes 15080 nps 1370909 tbhits 0 time 11 pv d7d5 e2e3
bestmove d7d5 ponder e2e3

---------------------------------------------------------------------------------------------------------------------------------------

Now I want to play with black: Open Stockfish.exe in console:

Can first change some default settings like:

setoption name Threads value 2 (want to use 2cores/threads)

setoption name Hash value 128 (want to give 128Mb Hash memory)

setoption name Skill level value 2 (wants to play against level 2)

etc..don't forget Enter after each line!

back to example... Stockfish starts and play with White:

2nd line: position startpos (Enter)

3rd line: go movetime 10 (Enter)

and white(Stockfish) gives you his first move: bestmove d2d4

I want to answer with d7d5 , so: position startpos moves d2d4 d7d5 (Enter)

give the time again: go movetime 10 (Enter)

and SF answer with: bestmove c2c4 ..etc..

Stockfish 14.1 by the Stockfish developers (see AUTHORS file)
setoption name Skill level value 1
position startpos
go movetime 10
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score cp 38 nodes 74 nps 37000 tbhits 0 time 2 pv d2d4
info depth 2 seldepth 2 multipv 1 score cp 82 nodes 184 nps 92000 tbhits 0 time 2 pv e2e4 a7a6
info depth 3 seldepth 3 multipv 1 score cp 55 nodes 541 nps 270500 tbhits 0 time 2 pv e2e4 c7c6 d2d4
info depth 4 seldepth 4 multipv 1 score cp 44 nodes 1456 nps 485333 tbhits 0 time 3 pv e2e4 d7d6 d2d4 g8f6
info depth 5 seldepth 6 multipv 1 score cp 26 nodes 4214 nps 1053500 tbhits 0 time 4 pv d2d4 d7d5 c1f4 g8f6
info depth 6 seldepth 7 multipv 1 score cp 67 nodes 8404 nps 1400666 tbhits 0 time 6 pv e2e4 d7d6 b1c3
info depth 7 seldepth 8 multipv 1 score cp 46 nodes 16179 nps 1617900 tbhits 0 time 10 pv e2e4 c7c5 g1f3 b8c6 d2d4 c5d4 f3d4
info depth 8 seldepth 8 multipv 1 score cp 37 upperbound nodes 18065 nps 1642272 tbhits 0 time 11 pv e2e4 c7c5
bestmove d2d4 ponder d7d5
position startpos moves d2d4 d7d5
go movetime 10
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score cp 25 nodes 113 nps 56500 tbhits 0 time 2 pv c2c4
info depth 2 seldepth 2 multipv 1 score cp 39 nodes 256 nps 128000 tbhits 0 time 2 pv c2c4 e7e6 b1c3 g8f6
info depth 3 seldepth 3 multipv 1 score cp 39 nodes 426 nps 213000 tbhits 0 time 2 pv c2c4 e7e6 b1c3
info depth 4 seldepth 4 multipv 1 score cp 39 nodes 768 nps 384000 tbhits 0 time 2 pv c2c4 e7e6 b1c3 g8f6
info depth 5 seldepth 6 multipv 1 score cp 38 nodes 1954 nps 651333 tbhits 0 time 3 pv c2c4 e7e6 b1c3 d5c4 e2e3 c7c5 f1c4
info depth 6 seldepth 6 multipv 1 score cp 40 nodes 3262 nps 815500 tbhits 0 time 4 pv g1f3 e7e6 c2c4 g8f6 b1c3
info depth 7 seldepth 7 multipv 1 score cp 35 nodes 8402 nps 1200285 tbhits 0 time 7 pv g1f3 e7e6 c2c4 c7c5 c4d5 e6d5 b1c3 g8f6
info depth 8 seldepth 11 multipv 1 score cp 41 nodes 16331 nps 1484636 tbhits 0 time 11 pv c2c4 e7e6 b1c3 g8f6 c1g5 f8b4 c4d5
bestmove c2c4 ponder e7e6
----------------------------------------------------------------------------------------------------------------------------------

What you have to pay attention to is if SF starts as White is without moves!

position startpos

the next move is with moves!

position startpos moves

--------------------------------------------------------------------------

If you start with white it is always with moves!

position startpos moves

------------------------------------------------------------------------------------------------------------

How to use Stockfish in console with a position and play further from there:

You need a FEN code ,a example i take from Arena and setup a position ,copy FEN to clipboard : 3kr3/2p1p3/3p4/1Q6/8/8/3K4/5R2 w - - 0 1

Start Stockfish.exe in console (dubble click stockfish.exe)

first line: position fen 3kr3/2p1p3/3p4/1Q6/8/8/3K4/5R2 w - - 0 1 (Enter)

2nd line: go movetime 2 (Enter)

Stockfish reply with bestmove d2e3

Now i want to reply with e7e5 : position fen 3kr3/2p1p3/3p4/1Q6/8/8/3K4/5R2 w - - 0 1 moves d2e3 e7e5 (Enter)

So you need each time to copy the position fen + moves with all moves!

again go movetime 2 (Enter)

And Stockfish reply with bestmove f1f7 with Mate in 5

In case you want stockfish let play also next move then: position fen 3kr3/2p1p3/3p4/1Q6/8/8/3K4/5R2 w - - 0 1 moves d2e3 e7e5 f1f7 (Enter)

go movetime 2 (Enter)

And give bestmove d8c8 with Mate in -4

Stockfish 14.1 by the Stockfish developers (see AUTHORS file)
position fen 3kr3/2p1p3/3p4/1Q6/8/8/3K4/5R2 w - - 0 1
go movetime 2
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score cp 601 nodes 47 nps 47000 tbhits 0 time 1 pv f1f7
info depth 2 seldepth 2 multipv 1 score cp 685 nodes 315 nps 157500 tbhits 0 time 2 pv d2d3 d6d5
info depth 3 seldepth 3 multipv 1 score cp 616 nodes 509 nps 254500 tbhits 0 time 2 pv d2c3 e7e6 f1f7
info depth 4 seldepth 4 multipv 1 score cp 923 nodes 925 nps 462500 tbhits 0 time 2 pv f1f7 e8g8 b5b8 d8d7 b8g8
info depth 5 seldepth 5 multipv 1 score cp 923 nodes 1638 nps 546000 tbhits 0 time 3 pv d2e3 e8h8 b5b8 d8d7 b8h8
info depth 6 seldepth 6 multipv 1 score cp 800 nodes 2248 nps 749333 tbhits 0 time 3 pv d2e3 c7c6
bestmove d2e3 ponder c7c6
position fen 3kr3/2p1p3/3p4/1Q6/8/8/3K4/5R2 w - - 0 1 moves d2e3 e7e5
go movetime 2
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score cp 959 nodes 41 nps 20500 tbhits 0 time 2 pv f1f7
info depth 2 seldepth 2 multipv 1 score cp 959 nodes 146 nps 73000 tbhits 0 time 2 pv f1f7 d8c8 b5e8 c8b7
info depth 3 seldepth 3 multipv 1 score cp 959 nodes 196 nps 98000 tbhits 0 time 2 pv f1f7 d8c8 b5e8 c8b7
info depth 4 seldepth 4 multipv 1 score cp 959 nodes 270 nps 135000 tbhits 0 time 2 pv f1f7 d8c8 b5e8 c8b7
info depth 5 seldepth 5 multipv 1 score cp 949 nodes 431 nps 143666 tbhits 0 time 3 pv f1f7 d8c8 b5e8 c8b7 f7f8
info depth 6 seldepth 6 multipv 1 score cp 1043 nodes 561 nps 187000 tbhits 0 time 3 pv f1f7 d8c8 b5e8 c8b7
info depth 7 seldepth 7 multipv 1 score cp 1043 nodes 771 nps 257000 tbhits 0 time 3 pv f1f7 d8c8 b5e8 c8b7 e8b5 b7a7 f7c7 a7a8
info depth 8 seldepth 8 multipv 1 score cp 1053 nodes 1104 nps 368000 tbhits 0 time 3 pv f1f7 d8c8 b5e8 c8b7 e8b5 b7a8 f7c7
info depth 9 seldepth 10 multipv 1 score mate 5 nodes 1338 nps 446000 tbhits 0 time 3 pv f1f7 d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4
info depth 10 seldepth 10 multipv 1 score mate 5 nodes 1570 nps 392500 tbhits 0 time 4 pv f1f7 d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
info depth 11 seldepth 10 multipv 1 score mate 5 nodes 1596 nps 399000 tbhits 0 time 4 pv f1f7 d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
bestmove f1f7 ponder d8c8

position fen 3kr3/2p1p3/3p4/1Q6/8/8/3K4/5R2 w - - 0 1 moves d2e3 e7e5 f1f7
go movetime 2
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score mate -4 nodes 29 nps 29000 tbhits 0 time 1 pv d8c8
info depth 2 seldepth 2 multipv 1 score mate -4 nodes 45 nps 22500 tbhits 0 time 2 pv d8c8 b5e8 c8b7
info depth 3 seldepth 3 multipv 1 score mate -4 nodes 62 nps 31000 tbhits 0 time 2 pv d8c8 b5e8 c8b7
info depth 4 seldepth 4 multipv 1 score mate -4 nodes 81 nps 40500 tbhits 0 time 2 pv d8c8 b5e8 c8b7 e8b5 b7a8
info depth 5 seldepth 5 multipv 1 score mate -4 nodes 124 nps 41333 tbhits 0 time 3 pv d8c8 b5e8 c8b7 e8b5 b7a8
info depth 6 seldepth 6 multipv 1 score mate -4 nodes 145 nps 48333 tbhits 0 time 3 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7
info depth 7 seldepth 7 multipv 1 score mate -4 nodes 184 nps 61333 tbhits 0 time 3 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4
info depth 8 seldepth 9 multipv 1 score mate -4 nodes 211 nps 52750 tbhits 0 time 4 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
info depth 9 seldepth 9 multipv 1 score mate -4 nodes 246 nps 61500 tbhits 0 time 4 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
info depth 10 seldepth 9 multipv 1 score mate -4 nodes 283 nps 56600 tbhits 0 time 5 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
info depth 11 seldepth 9 multipv 1 score mate -4 nodes 341 nps 68200 tbhits 0 time 5 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
info depth 12 seldepth 9 multipv 1 score mate -4 nodes 477 nps 79500 tbhits 0 time 6 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
info depth 13 seldepth 9 multipv 1 score mate -4 nodes 649 nps 108166 tbhits 0 time 6 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
info depth 14 seldepth 9 multipv 1 score mate -4 nodes 1125 nps 160714 tbhits 0 time 7 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
info depth 15 seldepth 9 multipv 1 score mate -4 nodes 1243 nps 155375 tbhits 0 time 8 pv d8c8 b5e8 c8b7 e8b5 b7a8 f7c7 e5e4 b5b7
bestmove d8c8 ponder b5e8

---------------------------------------------------------------------------------------------------------------------------------------

Instead of go movetime x , you can also use ,go depth x and go nodes x in Stockfish.

Stockfish 14.1 by the Stockfish developers (see AUTHORS file)
position startpos moves d2d4
go depth 10
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score cp -31 nodes 20 nps 10000 tbhits 0 time 2 pv d7d5
info depth 2 seldepth 2 multipv 1 score cp 4 nodes 41 nps 20500 tbhits 0 time 2 pv d7d5 a2a3
info depth 3 seldepth 3 multipv 1 score cp -16 nodes 97 nps 48500 tbhits 0 time 2 pv d7d5 a2a3 b8d7
info depth 4 seldepth 4 multipv 1 score cp -43 nodes 429 nps 143000 tbhits 0 time 3 pv c7c6 b1c3 d7d5 e2e4 d5e4
info depth 5 seldepth 5 multipv 1 score cp -31 nodes 998 nps 332666 tbhits 0 time 3 pv d7d5 e2e3 c7c6 c2c4 g8f6
info depth 6 seldepth 6 multipv 1 score cp -17 nodes 1887 nps 471750 tbhits 0 time 4 pv g8f6 e2e3 d7d5 c2c4 c7c6
info depth 7 seldepth 8 multipv 1 score cp -24 nodes 7215 nps 1030714 tbhits 0 time 7 pv d7d5 c2c4 e7e6 b1c3 g8f6 c4d5 e6d5
info depth 8 seldepth 10 multipv 1 score cp -33 nodes 12392 nps 1126545 tbhits 0 time 11 pv d7d5 c2c4 c7c6 g1f3 g8f6 c4d5 c6d5 c1f4 c8f5 b1c3 e7e6
info depth 9 seldepth 12 multipv 1 score cp -36 nodes 21041 nps 1237705 tbhits 0 time 17 pv g8f6 c2c4 e7e6 g1f3 d7d5 b1c3 c7c6 e2e3 f8d6 f1d3 d5c4 d3c4
info depth 10 seldepth 11 multipv 1 score cp -18 nodes 27781 nps 1322904 tbhits 0 time 21 pv g8f6 c2c4 e7e6 b1c3 f8b4 g1f3 e8g8 e2e3
bestmove g8f6 ponder c2c4
go nodes 10000
info string NNUE evaluation using nn-13406b1dcbe0.nnue enabled
info depth 1 seldepth 1 multipv 1 score cp -18 nodes 22 nps 22000 tbhits 0 time 1 pv g8f6
info depth 2 seldepth 2 multipv 1 score cp -18 nodes 45 nps 22500 tbhits 0 time 2 pv g8f6 c2c4
info depth 3 seldepth 3 multipv 1 score cp -18 nodes 73 nps 36500 tbhits 0 time 2 pv g8f6 c2c4 e7e6
info depth 4 seldepth 4 multipv 1 score cp -18 nodes 114 nps 57000 tbhits 0 time 2 pv g8f6 c2c4 e7e6 b1c3
info depth 5 seldepth 5 multipv 1 score cp -18 nodes 193 nps 96500 tbhits 0 time 2 pv g8f6 c2c4 e7e6 b1c3 f8b4
info depth 6 seldepth 6 multipv 1 score cp -18 nodes 362 nps 181000 tbhits 0 time 2 pv g8f6 c2c4 e7e6 b1c3 f8b4 g1f3
info depth 7 seldepth 7 multipv 1 score cp -18 nodes 950 nps 316666 tbhits 0 time 3 pv g8f6 c2c4 e7e6 b1c3 f8b4 g1f3 e8g8
info depth 8 seldepth 12 multipv 1 score cp -35 nodes 4748 nps 949600 tbhits 0 time 5 pv d7d5 c2c4 e7e6 b1c3 g8f6 c4d5 e6d5
info depth 9 seldepth 12 multipv 1 score cp -35 nodes 10016 nps 910545 tbhits 0 time 11 pv d7d5 c2c4 e7e6 b1c3 g8f6 c4d5 e6d5
bestmove d7d5 ponder c2c4

--------------------------------------------------------------------------------------------------------------------------------------------------------------

How to detect Time Forfait games into your .pgn database!

Download ProTools 1.6 from Ed Schroder! Thanks for your help!

http://rebel13.nl/misc/ebf/protools.html

Extract & put it any folder and start prodeo.EXE

Press [F1] and pick [Match Stats] from the menu with the arrow keys, then pick the PGN of your choice. Make sure you have your PGN's stored in the PGN sub-folder.

Ipman.

I get a other tool from Ferdinand Mosca to detect Time Forfait (TF)!

Download tf.zip : https://mega.nz/#!DdhgjQxa!4I9fq2LCsKw-IGiHDDHiUlFDqe8DCO2Jyj0QJ5tN4_8

Extract & put in folder where you keep your .pgn files

Run Command Prompt ..a Dos-window opens..go to the folder where you have put tf.exe

I take as a example a test 33 with 100games ,called Test100games33.pgn

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\ipman>cd ordo-1.0-win\cutechess tests

C:\Users\ipman\ordo-1.0-win\Cutechess Tests>tf.exe -i Test100games33.pgn
[Round "4"]
[White "SF-McBrain v4.0sm 64 bmi2"]
[Black "komodo-11.2.2-64bit"]
[Result "0-1"]
[Termination "time forfeit"]
line no. 178

[Round "27"]
[White "komodo-11.2.2-64bit"]
[Black "SF-McBrain v4.0sm 64 bmi2"]
[Result "1-0"]
[Termination "time forfeit"]
line no. 1474

[Round "33"]
[White "komodo-11.2.2-64bit"]
[Black "SF-McBrain v4.0sm 64 bmi2"]
[Result "1-0"]
[Termination "time forfeit"]
line no. 1821

[Round "38"]
[White "SF-McBrain v4.0sm 64 bmi2"]
[Black "komodo-11.2.2-64bit"]
[Result "0-1"]
[Termination "time forfeit"]
line no. 2077

[Round "39"]
[White "komodo-11.2.2-64bit"]
[Black "SF-McBrain v4.0sm 64 bmi2"]
[Result "1-0"]
[Termination "time forfeit"]
line no. 2162

[Round "85"]
[White "komodo-11.2.2-64bit"]
[Black "SF-McBrain v4.0sm 64 bmi2"]
[Result "1-0"]
[Termination "time forfeit"]
line no. 4738

[Round "99"]
[White "komodo-11.2.2-64bit"]
[Black "SF-McBrain v4.0sm 64 bmi2"]
[Result "1-0"]
[Termination "time forfeit"]
line no. 5599

Games: 100, TF 7

C:\Users\ipman\ordo-1.0-win\Cutechess Tests>

So,in these 100games there where 7 Time Forfaits detected.

For help type: tf.exe --help

To see Time Forfaits in sample.pgn type: tf.exe -i sample.pgn

The file names has to be one piece without spaces like tf.exe -i sample.pgn or tf.exe -i Test100games33.pgn

or when there is space in filename you can enclose it with qoutes.
tf.exe -i "my long games.pgn"

--------------------------------------------------------------------------------------------------------------------------------------

How to Rename engine names from pgn files into Notepad++

-Open pgn file
-Click on Search->Replace or press Ctrl+H
-Find what: engine x
-Replace with : engine X
-Then click on Replace All
-Save file

Done.

--------------------------------------------------------------------------------------------------------------------------------------------

How to compile Laser!

-Download last source from here: https://github.com/jeffreyan11/uci-chess-engine

-Put the files in a folder you want

-Of course you need a compiler installed on your system.

-Open Command Prompt and then just do this: in bold is what i have typed+enter

Important! After you have strip laser.exe ,First rename Laser.exe to a other name before you type make clean again..else laser.exe also deleted!

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\ipman>cd laser\src

C:\Users\ipman\Laser\src>make clean
rm -f *.o syzygy/*.o laser.exe laser

C:\Users\ipman\Laser\src>make
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ bbinit.cpp -o bbinit.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ board.cpp -o board.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ common.cpp -o common.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ eval.cpp -o eval.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ evalhash.cpp -o evalhas
h.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ hash.cpp -o hash.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ search.cpp -o search.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ moveorder.cpp -o moveor
der.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ syzygy/tbprobe.cpp -o s
yzygy/tbprobe.o
g++ -c -Wall -ansi -pedantic -std=c++11 -O3 -flto -x c++ uci.cpp -o uci.o
g++ -O3 -flto -o laser bbinit.o board.o common.o eval.o evalhash.o hash.o search
.o moveorder.o syzygy/tbprobe.o uci.o -lpthread

C:\Users\ipman\Laser\src>strip laser.exe

C:\Users\ipman\Laser\src>make clean
rm -f *.o syzygy/*.o laser.exe laser

C:\Users\ipman\Laser\src>

And done..remember rename Laser.exe first,then make clean..

What i do is ,i open laser.exe (dubble click) and copy the inside name..and this name i use to rename Laser.exe file.

Ipman.

------------------------------------------------------------------------------------------------------------------------------------------

How to assemble/compiling asmFish!

Download last source from here: https://lantonov.github.io/asmFish/

Click on View on Github ,then click on Clone or download -> download Zip and you get asmFish-master.zip (extract it to any folder)

Go to folder where you have put all these .asm files where you also see FASM.exe

Open Command Prompt->go to your asmFish folder-> you choose which version you want to make,i take asmFishW_bmi2.asm as example:
------------------------------------------------------------------
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\ipman>cd asmfish\asmfish

C:\Users\ipman\asmFish\asmFish>fasm.exe asmfishw_bmi2.asm
flat assembler version 1.71.57 (1048576 kilobytes memory)
5 passes, 0.2 seconds, 114176 bytes.

C:\Users\ipman\asmFish\asmFish>

And done..your engine is created!

Or a very fast way to create them all !!

Here a little .bat file to assemble automatic 6 asmFish/pedantFish compiles !

https://mega.nz/#!yAQwjSgb!TnRhYHYBzDcEhd7pJ0O5m6IopDLNLMVs8cwbkwOad-E

This is the most simple way to make your compiles..just put this asmFish assemble.bat in the same folder where you put the source..then click on the .bat file and you get your compiles..
Because i find it takes more time to type ,then the time needed to assemble asmFish/pedantFish ;)

Very simple tool ,but wins time & no typing needed


Ipman.

---------------------------------------------------------------------------------------------------------------------------------------------------------------

Here how i use Ordo: ->last Releases: https://github.com/michiguel/Ordo/releases

I don't run from command prompt..but just right-click on ordo_example.bat that i edit in Notpad++ (any editor is good)

In this bat file you can prepare all what you want to see..you can add switches you want (read manual..it's all there)

I use it for my different lists and systems.. In this example..(you can copy this line if you want to try out)

ordo-win64.exe -a 2953 -A "Houdini 4 Pro x64A SD12 8c" -U "0,1,3,4,6,7,8,9" -W -p i75960x.pgn -o rating.txt -W -s100 -D -E -V -n4 -j "Head to head statistics"

You see this line (a little different) 3 times in my bat file.. i just remove rem (=remark) for the line i want to use..so the other 2 lines will not be used at this time when you have saved first.When i want to use a other line..just put rem before line and remove a other one..and save!

A little explenation:

1) ordo-win64.exe = choose for 64 or 32bit version

2) -a 2953 = start Elo i use with a engine i have in my list

3) -A "Houdini 4 Pro x64A SD12 8c" = the engine i use as standard with the given Elo value. So Elo and engine is your choise ,but be sure to enter the right complete engine name..else you will get error!

4) The switches i use (see manual for explenation) just copy them and see what happen..

5) i75960x.pgn = is my database converted to a pgn database..so change it to your pgn database name! Copy this database to the same folder as Ordo! Important! keep this line the same with all right spaces and symbols..else error you will get. Just change Elo ,engine name and database.pgn name to yours.

6) Don't forget to save your changes!!

7) When done..just click on ordo_example.bat

8) You will see automatic command prompt opens and do his task.. After a few seconds (depending how big is your database) you will see all created .dat files in Ordo folder..check them one by one..

i open them with notepad:

general file = general.dat

rating file = rating.dat

programs file = programs.dat

Head to head statistics

After that i can copy this data info to my website..looks maybe a little complicated ,but one time your ordo .bat file is ready with the switches you want to use..is it just copy pgn database to Ordo folder (with same name) and click on .bat file..Done! 

Ipman.

Make a free website with Yola