Пример #1
0
        private int AddBoard(ref board tb, DateTime TimeOfLastDeal)
        {
            int ColumnToFill;

            if (tb.Empties.Count == 0)
            {
                //GetBetterMoves(ref tb);
                tb.deal(tb.score, TimeOfLastDeal);
                tb.bWasDealtTo = true;
                NewBoards.Add(tb);
                return(1);
            }
            // have empty columns, fill on column and add that board to the new series
            // note that if several columns are empty then we must call addboard again
            for (int i = 0; i < tb.Empties.Count; i++)
            {
                ColumnToFill = tb.Empties[i];
                SpinCardInto(ref tb, ColumnToFill);
            }
            return(0);
        }