08-01-2020, 12:54 PM
(This post was last modified: 08-01-2020, 01:18 PM by dale walton.)
I assume (move Slide) means move any distance in a straight line over empty spaces,
How does one code for move as far as possible in a straight line over empty spaces?
Something like this??
(move Step
(then
(do
(step (last To) Forward
ifAfterwards: (can (step (last To) Forward))
(then
(if
(can (step (last To) Forward)
(step (last To) Forward)
)
)
)
)
)
How does one code for move as far as possible in a straight line over empty spaces?
Something like this??
(move Step
(then
(do
(step (last To) Forward
ifAfterwards: (can (step (last To) Forward))
(then
(if
(can (step (last To) Forward)
(step (last To) Forward)
)
)
)
)
)