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

local symset = {
	2, --  1 wild    1000
	1, --  2 scatter (1, 3, 4, 5 reel)
	2, --  3 warrior 500
	2, --  4 helmet  200
	2, --  5 shield  200
	2, --  6 axe     100
	2, --  7 mug     100
	2, --  8 ace     50
	2, --  9 king    50
	3, -- 10 queen   25
	3, -- 11 jack    25
	3, -- 12 ten     25
	3, -- 13 nine    25
}

local neighbours = {
	--1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,
	{ 2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,}, --  1 wild
	{ 2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,}, --  2 scatter
	{ 1, 1, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,}, --  3 warrior
	{ 1, 1, 1, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0,}, --  4 helmet
	{ 1, 1, 1, 1, 2, 1, 1, 0, 0, 0, 0, 0, 0,}, --  5 shield
	{ 1, 1, 1, 1, 1, 2, 1, 0, 0, 0, 0, 0, 0,}, --  6 axe
	{ 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0,}, --  7 mug
	{ 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))
