update train and tower Lua

This commit is contained in:
Rafael Conceição
2023-10-10 11:17:51 +01:00
parent 753327db44
commit 2aa6776dd7
2 changed files with 9 additions and 9 deletions

View File

@@ -6,10 +6,10 @@ CREATIVE COMPUTING MORRISTOWN, NEW JERSY
]]
local MAX_DISKS = 7 --"<const>" can be used starting in Lua 5.4, as such: "local MAX_DISKS <const> = 7"
local MAX_DISK_SIZE = 15
local MAX_MOVES = 128
local NUM_TOWERS = 3
local MAX_DISKS <const> = 7
local MAX_DISK_SIZE <const> = 15
local MAX_MOVES <const> = 128
local NUM_TOWERS <const> = 3
local towers = {
{ size = 0, elem = {} },