Exemplo n.º 1
0
        public TileCriteria(string rackTiles, string templateTiles)
        {
            var totalTiles = rackTiles;
            if (!string.IsNullOrEmpty(templateTiles))
                totalTiles += GetTemplateTiles(templateTiles);
            _count = BuildCount(totalTiles, true);
            _buffer = new int[_count.Length];
            _scorer = new Scorer();
            _bingoCheck = BuildCount(rackTiles, true);
            _bingoBuffer = new int[_bingoCheck.Length];

            CheckBingo = rackTiles.Length >= 7;
        }
 static WordDisplayConverter()
 {
     _s = new Scorer();
 }