public Game() { frames = new Frames[10]; Frame = 0; Total = 0; strikeFrame = 0; EndGame = false; strikeBonus = 0; isThirdRoll = false; InicializeFrames(); }
private void InicializeFrames() { for (int i = 0; i < 10; i++) { Frames f = new Frames(); f.rollI = -1; f.rollII = -1; f.rollIII = -1; f.framePosition = i; frames[i] = f; } }