public SpinResult Spin(SpinResult SR) { SR.ArrayOfSymbols = new string[Reels.Count]; for (int i = 0; i < Reels.Count; i++) { SR.ArrayOfSymbols[i] = RO.SpinReel(Reels[i]); } return(SR); }
private void CheckForWin(SpinResult SR) { SE = new SpinEval(SC); SR = SE.EvaluateSpin(SR); ListOfSpinResults.Add(SR); //Console.WriteLine("{0} - {1} - {2} || Winner: {3,-10} Number Matched: {4,-10}, Winning Symbol: {5,-5}, Payout: {6,-10}",SR.ArrayOfSymbols[0], SR.ArrayOfSymbols[1], SR.ArrayOfSymbols[2], SR.WinningSymbol.ToString(), SR.NumberMatched.ToString(), SR.WinningSymbol, SR.Payout.ToString()); //SR = new SpinResult(); }
private SpinResult PullHandle(SpinResult SR) { SR = SM.Spin(SR); return(SR); }
public void Play() { SR = new SpinResult(); SR = PullHandle(SR); CheckForWin(SR); }