Beispiel #1
0
        private void AddHorizontalSituationScore(Tile self, ref int[,] score, int xstart, int xend, int ystart)
        {
            if (!_game.IsFree(xstart, ystart))
            {
                return;
            }
            var q = 0;

            for (var x = xstart; x <= xend; x++)
            {
                if (_game.GetTileAt(xstart, ystart) == self)
                {
                    q++;
                }
            }
            if (q >= 7)
            {
                score[xstart, ystart] += 90;
            }
        }