コード例 #1
0
ファイル: Program.cs プロジェクト: srm022/Katas
        static void Main(string[] args)
        {
            var          height       = 3.0;
            var          bounce       = 0.66;
            const double windowHeight = 1.5;

            Kata.Run(() => BouncingBall.GetBallPassingByWindowCount(height, bounce, windowHeight));
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            BouncingBall bouncingBall = new BouncingBall();
            int          seenCount    = BouncingBall.bouncingBall(3, .66, 1.5);

            Console.WriteLine($"Number of times seen is: {seenCount}");
        }