Skip to content

Commit

Permalink
Remove dependence on SgRandom::Global for forced opening move
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/fuego/code/trunk@2007 2e953b5c-c64d-0410-be54-f773e93e544c
  • Loading branch information
mmueller65 committed Aug 16, 2015
1 parent f1d1305 commit 38b2db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gouct/GoUctUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ SgPoint GoUctUtil::GenForcedOpeningMove(const GoBoard& bd)
moves.PushBack(Pt(sz - 3, sz - 3));
if (moves.IsEmpty())
return SG_NULLMOVE;
return moves[SgRandom::Global().SmallInt(moves.Length())];
return moves[0];
}

void GoUctUtil::GfxBestMove(const SgUctSearch& search, SgBlackWhite toPlay,
Expand Down

0 comments on commit 38b2db6

Please sign in to comment.