Example #1
0
        internal void Tick(IMessageLog log)
        {
            ticks++;

            sweep.Tick(ticks, log);

            if (ticks % 30 == 0)
            {
                foreach (var player in Players)
                {
                    var slot = Board.AddNewPieceAtRandomEmptySlot(player);

                    if (slot != null)
                    {
                        log.AddPiece(slot);
                    }
                }
            }
        }
Example #2
0
        internal void Tick(IMessageLog log)
        {
            ticks++;

            sweep.Tick(ticks, log);

            if (ticks % 30 == 0)
            {
                foreach (var player in Players)
                {
                    var slot = Board.AddNewPieceAtRandomEmptySlot(player);

                    if (slot != null)
                        log.AddPiece(slot);
                }
            }
        }