using HorizonSideRobots
include("../basics.jl")


md"""
            task_4 c перегородками
"""


 """Решение задачи 17"""
 function solve_16!(r)
    visited = Set()
    (M, N), (I, J) = get_field_size_and_position!(r)
    cells = Set()

    for i in 1:M
        for j in N:-1:i
            push!(cells, (M-i+1, j))
        end
    end

    mark_some_cells_with_dfs!(r, visited, (I, J), false, cells)
    
    show(r) 
end