Ejemplo n.º 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);
                    }
                }
            }
        }
Ejemplo n.º 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);
                }
            }
        }