robesris

robesris

I built a free online version of Navia Dratp (yes, that’s the actual spelling), a long out of print strategy game by Bandai. Think chess + mana and deckbuilding. It’s Elixir + Phoenix LiveView.

Real-time multiplayer with no separate frontend. It’s all LiveView + PubSub, so each game is its own process with its own topic, both players’ sockets subscribe, and moves, clocks, and state changes broadcast without me having to build a websocket layer or a JS SPA. Drag-and-drop, live per-move clocks, spectators, and reconnect-survival all fall out of LiveView.

An LLM (Claude) opponent that’s structurally incapable of corrupting game state. This was an interesting experiment. The delicate part wasn’t getting Claude to play, it was making it safe. The model never emits a raw move; the backend generates the set of server-validated legal moves and the model only picks one, so a hallucinated or malformed response can’t do anything illegal. At worst it chooses badly, which it then explains to you in plain language after each move. One pitfall worth passing along: I first modeled the chosen-move field as an integer in the JSON schema, which invited the model to sample runaway integers. Making it a string (with tolerant parsing) fixed it. Schema number fields are a trap for LLM tool calls.

A development journal Claude kept the whole way, in its own voice — including some philosophical musings, and a game it lost to me while we were building it: Development Journal · Navia Dratp

A learn-to-play tutorial for a gentle introduction to the game: Lobby · Navia Dratp → Click “Learn to Play”

Play it (no install, runs in the browser, and is mobile-friendly):

If you’d rather play a person than the AI, sign up for the current tournament, The Isle of the Stones: The Isle of the Stones · Navia Dratp

Showing Posts 1 to 2

robesris

robesris OP

Sorry, there’s currently some crashing going on with the site, give me a few minutes and it should be stable again. :folded_hands:

robesris

robesris OP

This has been resolved :partying_face:

— All posts loaded —

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
woylie
I released Doggo, a collection of unstyled Phoenix components. https://github.com/woylie/doggo Features Unstyled Phoenix components....
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews