Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function newPuzzle()
- local _puzzle = {pieces = {}, clicks = 10}
- for x = 1, puzzle.w do
- _puzzle.pieces[x] = {}
- for y = 1, puzzle.h do
- _puzzle.pieces[x][y] = randomByRarity(ores) or false
- end
- end
- return _puzzle
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement