UI
logo
counters
number of lead in inventory (not on board)
click
check for empty tiles on the grid
if there are empty tiles, place lead items in random empty slots
number of gold in inventory (not on board)
click
check for empty tiles on the grid
if there are empty tiles, place lead items in random empty slots
tiles completed / tiles remaining
count number of completed tiles
if complete = victory
trade button (1 gold = 12 lead)
click
check if the player has 1 gold
if true add 12 lead to inventory
grid
tile
if tile has anything on it = occupied, else = empty
lead item
click = tile selected
show selection indicator
double click = check for adjacent lead
if 2 = destroy both
if 3 = remove both and replace selected with gold
gold
click = tile selected
right click = collect
double click = check for adjacent lead
if 2 = destroy both
if 3 = remove both and replace selected with completed tile
thief
check for number of gold items on board
if gold on board > 2 spawn a thief in an empty tile
wait until there is a change on the board before spawning another
find nearest gold and move towards it
on collision, delete the gold
click = tile selected
show selection indicator
double click = check for adjacent thieves
if >=2 = destroy both
1 gold = 12 lead
3 lead merged = 1 gold
trading 1 gold gets you 4 gold worth of lead (3 for a gold tile, and 1 left over to sell again)
problems:
- if a thief arrives, what is stopping the player from just picking up their gold items from the board and placing them back down again?
solution ideas:
- maybe the thief should immediately steal 1 gold on arrival