void TrickHasBeenWon(object sender, Table.TrickHasBeenWonEventArgs e) { //This could cause trouble, because a new deal may already be starting // and the old deal is over, but the new deal just began. // If I am wrong, then my play will fail, and it will get sorted out when //I get the dealHasBeen Won Message //May be cleaner for the table to maintain a table state enumeration. // if (_table.DealOver) // return; // if (e.Winner == _mySeat) // _timeToPlay = true; // if (_manageDummy && e.Winner == _table.Dummy) // _timeToPlayForDummy = true; _tableStateHasChanged = true; }
void TrickHasBeenWon(object sender, Table.TrickHasBeenWonEventArgs e) { //Out.WriteLine("{2}: Trick has been won. Winner:{0}, Trick:{1}", e.Winner, e.Trick, _seat); Out.WriteLine("{0} won trick {1}", e.Winner, e.Trick, _seat); cards.Clear(); }