Average liberty player. More...
#include <string>#include "SpSimplePlayer.h"#include "SpMoveGenerator.h"Go to the source code of this file.
Classes | |
| class | SpAverageMoveGenerator |
| Tries to maximize liberty average of own minus opponent blocks. More... | |
| class | SpAveragePlayer |
| Simple player using SpAverageMoveGenerator. More... | |
Functions | |
| int | LibertyAveragex10 (const GoBoard &board, SgBlackWhite color) |
| Average number of liberties of blocks of color, multiplied by 10. | |
Average liberty player.
Definition in file SpAveragePlayer.h.
| int LibertyAveragex10 | ( | const GoBoard & | board, | |
| SgBlackWhite | color | |||
| ) |
Average number of liberties of blocks of color, multiplied by 10.
Definition at line 13 of file SpAveragePlayer.cpp.
References GoBoard::All(), GoBoard::AllEmpty(), and GoBoard::Size().
Referenced by SpMinLibMoveGenerator::Evaluate(), and SpAverageMoveGenerator::Evaluate().