local path = arg[0]:match("(.*[/\\])")
dofile(path.."../../lib/reelgen.lua")

local symset = {
	1, --  1 cup      10000
	1, --  2 scatter
	4, --  3 heart    1000
	3, --  4 sword    500
	3, --  5 shield   500
	4, --  6 esmerald 300
	4, --  7 sapphire 300
	3, --  8 ace      200
	3, --  9 king     200
	3, -- 10 queen    150
	3, -- 11 jack     150
	3, -- 12 ten      100
	4, -- 13 nine     100
}

local neighbours = {
	--1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,
	{ 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,}, --  1 cup
	{ 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,}, --  2 scatter
	{ 1, 1, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,}, --  3 heart
	{ 1, 1, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0,}, --  4 sword
	{ 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0,}, --  5 shield
	{ 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0,}, --  6 esmerald
	{ 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0,}, --  7 sapphire
	{ 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,}, --  8 ace
	{ 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0,}, --  9 king
	{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0,}, -- 10 queen
	{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0,}, -- 11 jack
	{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0,}, -- 12 ten
	{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,}, -- 13 nine
}

math.randomseed(os.time())
printreel(makereel(symset, neighbours))
