private void buttonDouble_Click(object sender, EventArgs e)
{
watch.Stop();
GameStateTurnAction gsta = new GameStateTurnAction(currentGameState.Clone(), watch.ElapsedMilliseconds, TurnAction.Double);
turns.Add(gsta);
textBoxLog.Text += "Turn action added" + " " + watch.ElapsedMilliseconds + "ms." + Environment.NewLine;
textBoxLog.SelectionStart = textBoxLog.Text.Length;
textBoxLog.ScrollToCaret();
currentGameState.Double();
Render();
this.Refresh();
DoubleResponseHint hint = gnubg.DoubleResponseHint(currentGameState);
Thread.Sleep(thinker.TimeOnDoubleOffer(currentGameState, hint));
if (hint.Response == DoubleResponse.Pass)
{
status = GameStatus.GameOver;
return;
}
if (hint.Response == DoubleResponse.Take)
{
currentGameState.Take();
}
UpdateControls();
}