1. Java / Говнокод #24249

    +3

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    if (x_sum_first_row == 3 || x_sum_second_row == 3 || x_sum_third_row == 3 ||
                x_sum_first_column == 3 || x_sum_second_column == 3 || x_sum_third_column == 3 ||
                x_sumDiagonalLR == 3 || x_sumDiagonalRL == 3 ||
                o_sum_first_row == 3 || o_sum_second_row == 3 || o_sum_third_row == 3 ||
                o_sum_first_column == 3 || o_sum_second_column == 3 || o_sum_third_column == 3 ||
                o_sumDiagonalLR == 3 || o_sumDiagonalRL == 3)
                someoneWon = true;
    
            return someoneWon;

    https://codereview.stackexchange.com/questions/125248/java-tic-tac-toe-game-implemented-through-mvc

    Запостил: roskomgovno, 11 Мая 2018

    Комментарии (5) RSS

    Добавить комментарий