Difference between revisions of "Scorpio"

From Chessprogramming wiki
Jump to: navigation, search
 
(9 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
==Evaluation==  
 
==Evaluation==  
 
Scorpio's [[Evaluation|evaluation]] includes following features and techniques <ref>[https://github.com/dshawul/Scorpio/blob/master/eval.cpp Scorpio/eval.cpp at master · dshawul/Scorpio · GitHub]</ref> :
 
Scorpio's [[Evaluation|evaluation]] includes following features and techniques <ref>[https://github.com/dshawul/Scorpio/blob/master/eval.cpp Scorpio/eval.cpp at master · dshawul/Scorpio · GitHub]</ref> :
 +
* [[NNUE]] (3.0.9)
 
* [[Candidate Passed Pawn]]
 
* [[Candidate Passed Pawn]]
 
* [[Evaluation Hash Table]]
 
* [[Evaluation Hash Table]]
Line 41: Line 42:
  
 
==ScorpioNN==
 
==ScorpioNN==
The [[Neural Networks|neural network]] version of Scorpio '''2.9.0''' (2019) works using '''egbbdll''' shared library <ref>[https://github.com/dshawul/egbbdll GitHub - dshawul/egbbdll: Probing code for scorpio bitbases]</ref> that provides neural network inference via [https://en.wikipedia.org/wiki/TensorFlow TensorFlow] and/or ''TensorRT'' <ref>[https://developer.nvidia.com/tensorrt NVIDIA TensorRT | NVIDIA Developer]</ref> backends <ref>[https://github.com/dshawul/Scorpio#nns GitHub - dshawul/Scorpio: Scorpio chess engine - Neural Networks (NNs)]</ref>.
+
The [[Neural Networks|neural network]] version of Scorpio '''2.9.0''' (2019) works using [[Scorpio#Bitbases|egbbdll]] shared library <ref>[https://github.com/dshawul/egbbdll GitHub - dshawul/egbbdll: Probing code for scorpio bitbases]</ref> that provides neural network inference via [https://en.wikipedia.org/wiki/TensorFlow TensorFlow] and/or ''TensorRT'' <ref>[https://developer.nvidia.com/tensorrt NVIDIA TensorRT | NVIDIA Developer]</ref> backends <ref>[https://github.com/dshawul/Scorpio#nns GitHub - dshawul/Scorpio: Scorpio chess engine - Neural Networks (NNs)]</ref>.
 +
 
 +
==ScorpioNNUE==
 +
With the the advent of [[NNUE]] and its huge success in [[Stockfish NNUE]], [[CFish#NNUE|CFish NNUE]] and other engines, [[Daniel Shawul]] added NNUE support à la CFish into his [[Scorpio#Bitbases|egbbdll]] probing library <ref>[http://www.talkchess.com/forum3/viewtopic.php?f=7&t=75400&start=22 Re: Hacking around CFish NNUE] by [[Daniel Shawul]], [[CCC]], October 15, 2020</ref> <ref>[https://github.com/dshawul/nnue-probe GitHub - dshawul/nnue-probe]</ref>, and reported more than 400 Elo out of his implementation with a shared library with Scorpio '''3.0.9''' <ref>[http://www.talkchess.com/forum3/viewtopic.php?f=7&t=75415&start=3 Re: How to scale stockfish NNUE score?] by [[Daniel Shawul]], [[CCC]], October 17, 2020</ref>.
  
 
=See also=  
 
=See also=  
 +
* [[BBC#NNUE|BBC NNUE]]
 
* [[DanChess]]
 
* [[DanChess]]
 +
* [[Nebiyu]]
  
 
=Dedicated Namesake=  
 
=Dedicated Namesake=  
Line 62: Line 68:
 
* [http://www.talkchess.com/forum/viewtopic.php?t=18497 Scorpio 2.0 Windows x64 build available] by [[Jim Ablett]], [[CCC]], December 22, 2007
 
* [http://www.talkchess.com/forum/viewtopic.php?t=18497 Scorpio 2.0 Windows x64 build available] by [[Jim Ablett]], [[CCC]], December 22, 2007
 
* [http://www.talkchess.com/forum/viewtopic.php?t=18506 Scorpio 64 bit questions] by [[Denis Mendoza|Denis P. Mendoza]], [[CCC]], December 23, 2007  
 
* [http://www.talkchess.com/forum/viewtopic.php?t=18506 Scorpio 64 bit questions] by [[Denis Mendoza|Denis P. Mendoza]], [[CCC]], December 23, 2007  
 +
* [http://www.open-aurec.com/wbforum/viewtopic.php?f=4&t=49618 Interesting Scorpio design] by [[Kerwin Medina]], [[Computer Chess Forums|Winboard Forum]], November 05, 2008 » [[Iterative Search]]
 
* [http://www.talkchess.com/forum/viewtopic.php?t=24146 Scorpio 202 Under Linux Resolved] by [[Joshua Shriver]], [[CCC]], October 03, 2008
 
* [http://www.talkchess.com/forum/viewtopic.php?t=24146 Scorpio 202 Under Linux Resolved] by [[Joshua Shriver]], [[CCC]], October 03, 2008
 
==2010 ...==
 
==2010 ...==
Line 74: Line 81:
 
* [http://www.talkchess.com/forum/viewtopic.php?t=66032 Scorpio 2.7.9] by [[Daniel Shawul]], [[CCC]], December 16, 2017
 
* [http://www.talkchess.com/forum/viewtopic.php?t=66032 Scorpio 2.7.9] by [[Daniel Shawul]], [[CCC]], December 16, 2017
 
'''2018'''
 
'''2018'''
* [http://www.talkchess.com/forum/viewtopic.php?t=66414 Alpha-Beta as a rollouts algorithm] by [[Daniel Shawul]], [[CCC]], January 25, 2018 » [[Alpha-Beta]], [[MCαβ]], [[Monte-Carlo Tree Search]]
+
* [http://www.talkchess.com/forum/viewtopic.php?t=66414 Alpha-Beta as a rollouts algorithm] by [[Daniel Shawul]], [[CCC]], January 25, 2018 » [[Alpha-Beta]], [[MCαβ]], [[Monte-Carlo Tree Search]]
 
* [http://www.talkchess.com/forum/viewtopic.php?t=66552 Scorpio 2.8] by [[Daniel Shawul]], [[CCC]], February 10, 2018
 
* [http://www.talkchess.com/forum/viewtopic.php?t=66552 Scorpio 2.8] by [[Daniel Shawul]], [[CCC]], February 10, 2018
 
* [http://www.talkchess.com/forum/viewtopic.php?t=66886 comparing minimax and averaging MCTS with alphabeta rollouts] by [[Daniel Shawul]], [[CCC]], March 20, 2018 » [[Monte-Carlo Tree Search]]
 
* [http://www.talkchess.com/forum/viewtopic.php?t=66886 comparing minimax and averaging MCTS with alphabeta rollouts] by [[Daniel Shawul]], [[CCC]], March 20, 2018 » [[Monte-Carlo Tree Search]]
Line 85: Line 92:
 
* [http://www.talkchess.com/forum3/viewtopic.php?f=2&t=71575 Scorpio 3.0] by [[Daniel Shawul]], [[CCC]], August 16, 2019
 
* [http://www.talkchess.com/forum3/viewtopic.php?f=2&t=71575 Scorpio 3.0] by [[Daniel Shawul]], [[CCC]], August 16, 2019
 
* [http://www.talkchess.com/forum3/viewtopic.php?f=2&t=72018 Scorpio 3.0.2] by [[Werner Schüle]], [[CCC]], October 06, 2019
 
* [http://www.talkchess.com/forum3/viewtopic.php?f=2&t=72018 Scorpio 3.0.2] by [[Werner Schüle]], [[CCC]], October 06, 2019
 +
==2020 ...==
 +
* [http://www.talkchess.com/forum3/viewtopic.php?f=7&t=75400&start=22 Re: Hacking around CFish NNUE] by [[Daniel Shawul]], [[CCC]], October 15, 2020
 +
* [http://www.talkchess.com/forum3/viewtopic.php?f=7&t=75415&start=3 Re: How to scale stockfish NNUE score?] by [[Daniel Shawul]], [[CCC]], October 17, 2020
 +
* [http://www.talkchess.com/forum3/viewtopic.php?f=7&t=77348 NNUE scoring (egbb lib)] by [[Michael Hoffmann|Desperado]], [[CCC]], May 19, 2021 » [[NNUE]],[[#ScorpioNNUE|Scorpio NNUE]]
 +
* [http://www.talkchess.com/forum3/viewtopic.php?f=2&t=77503&start=55 Re: will Tcec allow Stockfish with a Leela net to play?] by [[Connor McMonigle]], [[CCC]], June 17, 2021 » [[NNUE]]
 +
: [http://www.talkchess.com/forum3/viewtopic.php?f=2&t=77503&start=63 Re: will Tcec allow Stockfish with a Leela net to play?] by [[Daniel Shawul]], [[CCC]], June 18, 2021
 +
* [https://www.talkchess.com/forum3/viewtopic.php?f=7&t=75506&start=40 Re: NNUE Question - King Placements] by [[Daniel Shawul]], July 01, 2021 » [[#ScorpioNNUE|ScorpioNNUE]]
  
 
=External Links=  
 
=External Links=  
Line 90: Line 104:
 
* [http://sites.google.com/site/dshawul/home Scorpio Chess and Nebiyu Alien]
 
* [http://sites.google.com/site/dshawul/home Scorpio Chess and Nebiyu Alien]
 
* [https://github.com/dshawul/Scorpio dshawul/Scorpio · GitHub]
 
* [https://github.com/dshawul/Scorpio dshawul/Scorpio · GitHub]
 +
* [https://github.com/dshawul/egbbdll GitHub - dshawul/egbbdll: Probing code for scorpio bitbases]
 +
* [https://github.com/dshawul/nn-probe GitHub - dshawul/nn-probe: Library for probing neural networks]
 +
* [https://github.com/dshawul/nnue-probe GitHub - dshawul/nnue-probe: for probing  NNUE]
 
* [http://wbec-ridderkerk.nl/html/details1/Scorpio.html Engine: Scorpio] from [[WBEC|WBEC Ridderkerk]]
 
* [http://wbec-ridderkerk.nl/html/details1/Scorpio.html Engine: Scorpio] from [[WBEC|WBEC Ridderkerk]]
* [http://www.linuxchess.org/2010/03/update_scorpio_2-5_debian_package/ Update: scorpio 2.5 debian package (unofficial)], [http://www.linuxchess.org/ Linux and Chess], March 13, 2010
 
 
* [http://www.chessgames.com/perl/chessplayer?pid=111050 The chess games of Scorpio] from [http://www.chessgames.com/index.html chessgames.com]
 
* [http://www.chessgames.com/perl/chessplayer?pid=111050 The chess games of Scorpio] from [http://www.chessgames.com/index.html chessgames.com]
 
==Misc==
 
==Misc==
Line 110: Line 126:
 
[[Category:XBoard]]
 
[[Category:XBoard]]
 
[[Category:NN]]
 
[[Category:NN]]
 +
[[Category:NNUE]]
 +
[[Category:MCTS]]
 
[[Category:X86]]
 
[[Category:X86]]
 
[[Category:X64]]
 
[[Category:X64]]
 +
[[Category:GPU]]
 
[[Category:PC]]
 
[[Category:PC]]
 
[[Category:Windows]]
 
[[Category:Windows]]

Latest revision as of 17:35, 16 March 2022

Home * Engines * Scorpio

Scorpio [1]

Scorpio,
a sophisticated open source chess engine by Daniel Shawul, written in C++ and compliant to the Chess Engine Communication Protocol with builds running under Windows and Linux. Scorpio participated at the CCT9, CCT11 and CCT12 online tournaments, and played the ICT 2007 over the board. It is base of Daniel's general game playing engine Nebiyu, able to play Chess variants, Checkers, Reversi, Go and Amazons [2].

Description

Board Representation

Scorpio combines Bitboards with a 0x88 board representation, and the coordinate transformation in scanning bits along with the lookup of the De Bruijn multiplication. The "unique" 64-bit routine was generated with the help of the De Bruijn Sequence Generator passing Daniel's birth date [3] . Magic bitboard implementation by Pradu Kannan [4] . Thanks for the acknowledgment of both!

Distributed Search

Scorpio performs a distributed search [5] [6] around an iterative depth-first search framework [7] :

Scorpio uses a decentralized approach (p2p) where neither memory nor jobs are centralized. Each host could have multiple processors in which case shared memory search (centralized search with threads) will be used. One processor per node will be started by mpirun, then each process at each node will create enough threads to engage all its processors. 

MCTS

Scorpio 2.7.9, released in December 2017, optionally features a Monte-Carlo Tree Search (MCTS) [8]. Scorpio 2.8 in February 2018, MCTS with alpha-beta rollouts as suggested Bojun Huang [9]. The parallel search for MCTS uses virtual loss to distribute work among threads in standard MCTS rollouts, and ABDADA like BUSY flag for alpha-beta rollouts. ABDADA and parallel MCTS from the Go world are very similar in nature [10].

Evaluation

Scorpio's evaluation includes following features and techniques [11] :

Bitbases

see main article Scorpio Bitbases

Scorpio has its own endgame bitbase format, which might be probed by other programs via a shared library egbbdll.

ScorpioNN

The neural network version of Scorpio 2.9.0 (2019) works using egbbdll shared library [12] that provides neural network inference via TensorFlow and/or TensorRT [13] backends [14].

ScorpioNNUE

With the the advent of NNUE and its huge success in Stockfish NNUE, CFish NNUE and other engines, Daniel Shawul added NNUE support à la CFish into his egbbdll probing library [15] [16], and reported more than 400 Elo out of his implementation with a shared library with Scorpio 3.0.9 [17].

See also

Dedicated Namesake

Forum Posts

2005 ...

2010 ...

2015 ...

2018

2019

2020 ...

Re: will Tcec allow Stockfish with a Leela net to play? by Daniel Shawul, CCC, June 18, 2021

External Links

Chess Engine

Misc

feat. Beb Guérin and Claude Delcloo

References

Up one level