Last active
August 29, 2015 14:04
-
-
Save atduskgreg/0a685a53df2f03fe85cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
→ ./stockfish rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR/ b | |
Stockfish 250714 64 by Tord Romstad, Marco Costalba and Joona Kiiski | |
rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR/ b | |
Eval term | White | Black | Total | |
| MG EG | MG EG | MG EG | |
----------------+-------------+-------------+------------- | |
Material | --- --- | --- --- | 0.16 0.00 | |
Imbalance | --- --- | --- --- | 0.00 0.00 | |
Pawns | --- --- | --- --- | -0.02 -0.02 | |
Knights | 0.12 0.00 | 0.12 0.00 | 0.00 0.00 | |
Bishops | -0.12 -0.37 | -0.12 -0.37 | 0.00 0.00 | |
Rooks | -0.54 0.00 | -0.54 0.00 | 0.00 0.00 | |
Queens | 0.00 0.00 | 0.00 0.00 | 0.00 0.00 | |
Mobility | -0.38 -0.41 | -0.93 -0.98 | 0.55 0.57 | |
King safety | 0.74 -0.06 | 0.94 -0.06 | -0.21 0.00 | |
Threats | 0.00 0.00 | 0.00 0.00 | 0.00 0.00 | |
Passed pawns | 0.00 0.00 | 0.00 0.00 | 0.00 0.00 | |
Space | 0.45 0.00 | 0.27 0.00 | 0.18 0.00 | |
----------------+-------------+-------------+------------- | |
Total | --- --- | --- --- | 0.67 0.55 | |
Total Evaluation: 0.67 (white side) | |
score: -0.600775 | |
→ ./stockfish rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR/ w | |
Stockfish 250714 64 by Tord Romstad, Marco Costalba and Joona Kiiski | |
rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR/ w | |
Eval term | White | Black | Total | |
| MG EG | MG EG | MG EG | |
----------------+-------------+-------------+------------- | |
Material | --- --- | --- --- | 0.16 0.00 | |
Imbalance | --- --- | --- --- | 0.00 0.00 | |
Pawns | --- --- | --- --- | -0.02 -0.02 | |
Knights | 0.12 0.00 | 0.12 0.00 | 0.00 0.00 | |
Bishops | -0.12 -0.37 | -0.12 -0.37 | 0.00 0.00 | |
Rooks | -0.54 0.00 | -0.54 0.00 | 0.00 0.00 | |
Queens | 0.00 0.00 | 0.00 0.00 | 0.00 0.00 | |
Mobility | -0.38 -0.41 | -0.93 -0.98 | 0.55 0.57 | |
King safety | 0.74 -0.06 | 0.94 -0.06 | -0.21 0.00 | |
Threats | 0.00 0.00 | 0.00 0.00 | 0.00 0.00 | |
Passed pawns | 0.00 0.00 | 0.00 0.00 | 0.00 0.00 | |
Space | 0.45 0.00 | 0.27 0.00 | 0.18 0.00 | |
----------------+-------------+-------------+------------- | |
Total | --- --- | --- --- | 0.67 0.55 | |
Total Evaluation: 0.67 (white side) | |
score: 0.732558 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include "bitboard.h" | |
#include "evaluate.h" | |
#include "position.h" | |
#include "search.h" | |
#include "thread.h" | |
#include "tt.h" | |
#include "ucioption.h" | |
using namespace std; | |
int main(int argc, char* argv[]) { | |
std::cout << engine_info() << std::endl; | |
std::stringstream fen; | |
int i = 1; | |
for(i = 1; i < argc; i++){ | |
fen << argv[i] << " "; | |
} | |
UCI::init(Options); | |
Bitboards::init(); | |
Position::init(); | |
Bitbases::init_kpk(); | |
Search::init(); | |
Pawns::init(); | |
Eval::init(); | |
Threads.init(); | |
Position pos; | |
pos.set(fen.str(), Options["UCI_Chess960"], Threads.main()); | |
Value v = Eval::evaluate(pos); | |
double cpScore = double(v)/PawnValueEg; | |
string trace = Eval::trace(pos); | |
cout << trace << endl; | |
cout << "score: " << cpScore << endl; | |
Threads.exit(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment