function love.load() deck = {} for suitIndex, suit in ipairs({'club', 'diamond', 'heart', 'spade'}) do for rank = 1, 13 do table.insert(deck, {suit = suit, rank = rank}) -- Temporary print('suit: '..suit..', rank: '..rank) end end -- Temporary print('Total number of cards in deck: '..#deck) end