public void ThreeSymbolsOnTheSameLine_ThreeDiffirentSymbosOnTheSameLine_ReturnFalse()
        {
            var aLine  = GenerateALine(Symbol.Seven, Symbol.Cherry, Symbol.DoubleBar);
            var result = SymbolHelpers.ThreeSymbolsOnTheSameLine(aLine, Symbol.Cherry);

            Assert.That(result, Is.EqualTo(false));
        }
        public void ThreeSymbolsOnTheSameLine_ThreeCherriesOnTheSameLine_ReturnTrue()
        {
            var aLine  = GenerateALine(Symbol.Cherry, Symbol.Cherry, Symbol.Cherry);
            var result = SymbolHelpers.ThreeSymbolsOnTheSameLine(aLine, Symbol.Cherry);

            Assert.That(result, Is.EqualTo(true));
        }
Exemple #3
0
 // Return 10 score when three Bars on any line
 private void ThreeBarOnAnyLine()
 {
     _score += SymbolHelpers.ThreeSymbolsOnTheSameLine(_winLines.TopLine, Symbol.Bar) ? 10 : 0;
     _score += SymbolHelpers.ThreeSymbolsOnTheSameLine(_winLines.CenterLine, Symbol.Bar) ? 10 : 0;
     _score += SymbolHelpers.ThreeSymbolsOnTheSameLine(_winLines.BottomLine, Symbol.Bar) ? 10 : 0;
 }
 // Return 4000 score when 3 cherry symbols on the bottom line
 private void ThreeCherryOnBottomLine()
 {
     _score += SymbolHelpers.ThreeSymbolsOnTheSameLine(_winLines.BottomLine, Symbol.Cherry) ? 4000 : 0;
 }
 // Return 1000 score when 3 cherry symbols on the center line
 private void ThreeCherryOnCenterLine()
 {
     _score += SymbolHelpers.ThreeSymbolsOnTheSameLine(_winLines.CenterLine, Symbol.Cherry) ? 1000 : 0;
 }
Exemple #6
0
 // Return 150 score when 3 seven on any line
 private void ThreeSeventOnAnyLine()
 {
     _score += SymbolHelpers.ThreeSymbolsOnTheSameLine(_WinLines.TopLine, Symbol.Seven) ? 150 : 0;
     _score += SymbolHelpers.ThreeSymbolsOnTheSameLine(_WinLines.CenterLine, Symbol.Seven) ? 150 : 0;
     _score += SymbolHelpers.ThreeSymbolsOnTheSameLine(_WinLines.BottomLine, Symbol.Seven) ? 150 : 0;
 }