First time here? Check out the FAQ!
answered 2018-08-09 06:45:37 -0600
def ship_hits_rect(ship, tl, br): return ship[0] <= br[0] and ship[0] >= tl[0] and ship[1] <= br[1] and ship[1] >= tl[1]