def test_game_ended_when_not_ended(self):
        env = Environment(2, 2)
        env.print_array(env.board)

        game_ended = env.check_game_ended()

        self.assertEqual(False, game_ended)
    def test_game_ended_when_x_has_won_(self):
        env = Environment(3, 3)
        env.set_x(0, 0)
        env.set_x(1, 0)
        env.set_x(2, 0)
        env.print_array(env.board)

        game_ended = env.check_game_ended(force_recalculate=True)

        self.assertEqual(True, game_ended)