let
is_valid_coor (cave : t) x y =
try
ignore (cave.(y).(x));
true
with
|
_
->
false