Ejemplo n.º 1
0
        public void BlocksFound(IEnumerable<Block> blocksFound)
        {
            var squaresFound = blocksFound.SelectMany(b => b.BoardCoordinates).Count();

            _score = new Score(_score.CurrentScore + (squaresFound * blocksFound.Count()),
                               _score.TotalSquaresMade + squaresFound);
        }
Ejemplo n.º 2
0
 public ScoreManager()
 {
     _score = new Score(0, 0);
 }