tresinformal / drakkar

The tresinformal video game called 'Drakkar'
GNU General Public License v3.0
11 stars 4 forks source link

Environment should return top_left and bottom_right coordinates #424

Closed swom closed 2 years ago

swom commented 2 years ago

The following test should pass in environment.cpp

#define FIX_ISSUE_424
#ifdef FIX_ISSUE_424
    {
        environment e;
        coordinate top_left = e.get_top_left();
        coordinate bottom_right = e.get_bottom_right();
        assert(top_left == coordinate(0,0));
        assert(bottom_right == coordinate(e.get_wall_l_side() + top_left.get_x(), e.get_wall_s_side() + top_left.get_y()));

    }
#endif