philcoin tools for Phil
Solana devnet ยท no stakes

The Line.

A tug of war for two. Both sides secretly choose how hard to pull; the bigger pull moves the coin one place; both pay what they pulled. Get it to your end.

On Solana, the referee is a program built around the upload server that Phil's compiler emits. Nobody can change a move after committing it, and it is Phil's code that checks.

The match

Apulls left
30 energy
waiting
ROUND1of 15
Bpulls right
30 energy
waiting
Pick how to play.

Referee log

Every step of the match, newest first. On Solana each one is a transaction you can open.

How a round is refereed

1. Commit

Each side sends only a SHA-256 hash of its move: the match, the round, the side, the pull and a random 32-byte secret.

through Phil's server
2. Both in

Reveals open only when both hashes are recorded. Until then nobody, including the referee, knows a pull.

our code
3. Reveal

Each side uploads the move itself. It must declare the committed hash, and Phil's server checks the bytes against it. A changed pull does not match.

checked by Phil's server
4. Play

With both pulls open the program applies the rules: move the coin, charge both sides, check for a win, open the next round.

our code

A side that commits and does not reveal in time forfeits. That is what stops a player who sees they are about to lose a round from simply walking away.

Matches on Solana

Every night two practice players play a whole match on devnet and the result is recorded here.

Before you rely on it

Where this comes from

The game and its rules ("duels-1") are from Highwire by HigherMaestro (MIT), built for AI agents on higher.fun. Phil's repository has an example that writes one player's side of a round as a Phil protocol and leaves the referee outside Phil. This page is a referee for that round with Phil's compiled server inside it. It is a separate program from Highwire's, with no stakes.

This is a community project and is not affiliated with Phil, Highwire or Solana.