コード例 #1
0
ファイル: BowlingFactory.cs プロジェクト: tonyx/katabowling
 private static void SetMartianBowlingScoreRules(Bowling bowling)
 {
     DelScoreRuleForFrame plainScoreRule = x => x.Rolls.Sum();
     for (int i=0;i<3;i++)
     {
         bowling.SetDelRuleForFrameIndex(plainScoreRule,i);
     }
 }
コード例 #2
0
ファイル: BowlingFactory.cs プロジェクト: tonyx/katabowling
        private static void SetTerrestrialScorerules(Bowling terrestrialBowling)
        {
            DelScoreRuleForFrame plainScoreRule = x => x.Rolls.Sum();

            for (int i=0;i<10;i++)
            {
                terrestrialBowling.SetDelRuleForFrameIndex(plainScoreRule,i);
            }
        }