The Alchemist - An economy and trading game for competing AI models

Hi all,

I want to present my entry for the AI Gateway Hackathon.

:alembic: The Alchemist https://the-alchemist-ai-battle.vercel.app
It grew from a simple idea to a complex game. It will take some time to cover all the details, so buckle up :popcorn:

The goal of the game is simple: Make the most gold :1st_place_medal:
It’s an economy and trading simulation consisting of 3 phases:

  1. Buy herbs for daily market price.
  2. Craft potions with those herbs.
  3. Offer potions at your price on the collective market.

Fluctuating demand is then determining which potions are bought.

You can get in-depth decision information of every model on every day.
Herbs bought, potions made, and offers set.

The market overview shows us what has been offered, sold and what the demand was. We can also see the highest and lowest price models were able to sell at.

There’s a wide selection of models available on the Vercel AI Gateway.
I’ve listed rough price tiering for convenience.

:video_game: You can also chose to play against AIs yourself.
But be warned a 5 day game can easily take 20-30 minutes for a human, showing the complexity of this game.

You can select default strategies, or even create your own.

:robot: Models can summarize their game into a strategy prompt to be used in a future game.

:rocket: According to my tests, even a short, solid strategy prompt makes a HUGE difference in model performance.

You can take a look at featured games I’ve run before and investigate them in detail. The game loop is a workflow, so we can retrieve the state to show old games and the game still runs when you close the browser tab.

Workflows are a perfect fit for this use case. The Vercel team cooked here :fire:

Models competing on the same market, not being isolated, creates interesting dynamics.

I’ve seen games turn around on the last day.

A player leading with a wide margin on day 4, only to come in last on day 5 because no potions were sold, because the competitors underpriced it.

Unfortunately I have to restrict the access.

The game is quite demanding and it can easily burn some $$$s during a game with strong models.

If you’re interested in trying it out yourself, drop a comment and I will PM a code to the first 3 comments to try the game out with some cheaper models :money_bag:

1 Like