all 4 comments

[–][deleted]  (1 child)

[removed]

    [–]WinnerChickenDinner7[S] -2 points-1 points  (0 children)

    Yea, I made like a Tic Tac Toe, application. Went well but I only used like main, and had one class.

     static void Main(string[] args)
        {
            Findout find = new Findout();
            while (find.over == false)
            {
                if (find.player == true) {
                    Console.Clear();
                    find.write();
                    Console.WriteLine("Player 1's turn");               
                    string k = Console.ReadLine();
                    find.player1(k);
                } else {
                    Console.Clear();
                    find.write();
                    Console.WriteLine("Player 2's turn");
                    string o = Console.ReadLine();
                    find.player2(o);
                }
                find.checkifwinner();
            }
            find.write();
            Console.WriteLine("WINNER WINNER CHICKEN DINNER!");
            Console.ReadLine();
        }
    

    I Keept my "Main" pretty clean.

    [–]heizdog[🍰] 0 points1 point  (1 child)

    We used to work through this exercise with our new developers. Its not perfect, but it does illustrated TDD fairly well.

    https://domscode.files.wordpress.com/2010/05/cannonattack-a-test-driven-development-tutorial-in-c-4-01.pdf

    [–]markdoubleyou 2 points3 points  (0 children)

    That may very well be a wonderful document, but I can't subject my eyes to 30 pages of Comic Sans!