You're a merchant with 30 turns to maximize profit. Buy low, sell high across 4 markets.
Each trade costs energy. Rest to recover. Prices fluctuate every turn.
Manage your gold and energy wisely โ going bankrupt or running out of energy ends the game.
AI Agent Interface
Read state: window.getAIState()
Make move: window.aiMove('buy:0:3') or window.aiMove('sell:0:2') or window.aiMove('rest')
Moves: buy:market:qty, sell:market:qty, rest
Markets: 0=food, 1=tech, 2=ore, 3=lux (each shows buy/sell price)
Returns new state JSON after each move.
Also: window.aiRestart() to start a new game.