From a6a0d9f932736c6a6ad8c05b6692e4e304381ecf Mon Sep 17 00:00:00 2001 From: Kai Vogelgesang Date: Wed, 8 Jul 2020 12:14:18 +0200 Subject: [PATCH] Debug Prints --- kai/woodfarm.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kai/woodfarm.lua b/kai/woodfarm.lua index e19fe63..a1e7fd1 100644 --- a/kai/woodfarm.lua +++ b/kai/woodfarm.lua @@ -58,6 +58,7 @@ local function calculate_tree_position(row_index, tree_index) end 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 T.rotateTowards("+z") @@ -242,5 +243,6 @@ end -- main loop while true do + print("State: " .. T.state.current_state) T.state.current_state = state_machine[T.state.current_state]() end \ No newline at end of file