Skip to content

Commit

Permalink
remove unnecessary BitBoard::utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluemer committed Apr 29, 2017
1 parent f42c42c commit a2e6ef6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion include/BitBoard.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class BitBoard
std::string player() const;
vmup actions() const;
bup result(mup &move) const;
double utility() const;
void printState() const;
};

Expand Down
14 changes: 0 additions & 14 deletions src/BitBoard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,20 +245,6 @@ bup BitBoard::result(mup &move) const
return result;
}

double BitBoard::utility() const
{
// std::cout << h.evalHeuristics(m_blackPieces, m_whitePieces, m_kingPieces);
/* if (m_isBlacksTurn) {
std::bitset<32> bits (m_blackPieces);
return 12 - bits.count();
}
std::bitset<32> bits (m_whitePieces);
return bits.count() - 12;
*/
return 0;// return heuristic.evaluate(m_blackPieces, m_whitePieces, m_kingPieces);
}

void BitBoard::printState() const
{
std::cout<<"-"<<pieceToString(11)<<"-"<<pieceToString(5)<<"-"<<pieceToString(31)<<"-"<<pieceToString(25)<<std::endl;
Expand Down

0 comments on commit a2e6ef6

Please sign in to comment.