Debug Prints

This commit is contained in:
Kai Vogelgesang 2020-07-08 12:14:18 +02:00
parent 5aae3ab55b
commit a6a0d9f932

View File

@ -58,6 +58,7 @@ local function calculate_tree_position(row_index, tree_index)
end end
local function greedy_move(x, z, o) local function greedy_move(x, z, o)
print("Move Target: " .. x .. "," .. z .. " (" .. o .. ")")
if z ~= T.state.z then if z ~= T.state.z then
if z > T.state.z then if z > T.state.z then
T.rotateTowards("+z") T.rotateTowards("+z")
@ -242,5 +243,6 @@ end
-- main loop -- main loop
while true do while true do
print("State: " .. T.state.current_state)
T.state.current_state = state_machine[T.state.current_state]() T.state.current_state = state_machine[T.state.current_state]()
end end