Skip to content

Commit

Permalink
Remove randomization of best move via SgRandom::Global()
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/fuego/code/trunk@2004 2e953b5c-c64d-0410-be54-f773e93e544c
  • Loading branch information
mmueller65 committed Aug 16, 2015
1 parent a16d52f commit 5d084da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion smartgame/SgEvaluatedMoves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ SgPoint SgEvaluatedMoves::BestMove()
if (m_moveList.IsEmpty())
return SG_PASS;
else
return m_moveList[SgRandom::Global().Int(m_moveList.Length())];
return m_moveList[0];
// TODO implement RandomBestMove() if needed
// return m_moveList[SgRandom::Global().Int(m_moveList.Length())];

}

void SgEvaluatedMoves::BestMoves(SgVector<SgPoint>& best, int nuMoves) const
Expand Down

0 comments on commit 5d084da

Please sign in to comment.