Skip to main content
Thanks for the feedback!

CoinTex

Collect every coin. Dodge the monsters and the fire. Beat the clock. Then watch the game play itself.

The game

Each level is a race against the clock. Walk where you tap, scoop up every coin, and stay clear of the monsters that roam (and from later worlds, chase) plus the fire that sweeps the floor. A short-range gun thins out anything that gets too close. Tap a shot below to see it full size, then swipe through the worlds.

It plays itself

An automatic player that optimizes every move

CoinTex can play for you. Many times every second it reads the board, where the coins are, where the monsters and fire are, how much time is left, and weighs a wide range of places it could move next. It scores each option for how safe and how rewarding it is, then commits to the best one. As the board changes, it keeps re-planning.

It leans toward coins when the way is clear and toward safety when danger closes in, growing bolder as the clock runs down.

How it decides

1
Read the board

Where the coins, monsters, and fire are right now.

2
Weigh the options

Consider many places it could move to next.

3
Pick the best

Score each by safety and reward, choose the top one.

4
Act, then repeat

Move, and re-plan as the board changes.

You set the temperament
Cautious

Keeps a wide margin from danger, even if it means leaving coins for later.

Balanced

Trades off coins and safety evenly.

Aggressive

Chases coins hard and accepts tighter calls. Reaction speed is adjustable too.

Get CoinTex

Free to play on phones and desktops. The code is open source.

Curious how the optimization works?

Vilvik lets you run your own optimization against built-in problems, or bring your own. Sign in for free to try the live demos.