frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Monochess – A chess variant with rule-bending action cards

https://monochess.pages.dev
1•h4ch1•51m ago
Hey HN,

A while back I saw a video[0] of people playing chess but using action cards to modify the rules mid-game (skip turns, reverse, draw 2, etc.). It looked incredibly chaotic and really fun to play, so I decided to actually build it as a playable online game. A small difference in Monochess is there's no need to call out a phrase if you just have one piece. I noticed while testing with the mrs. it became really annoying to keep doing this every move.

That also gave me a really good reason to build on Cloudflare using their entire stack, something I've been meaning to get my hands dirty with for quite some time. The app is built using SvelteKit and hosted on Pages, there's a Durable Object worker-backed game server, and D1 as the database layer for accounts/games.

This project included:

- A Custom Engine: Standard chess engines panic when forced into illegal board states. The engine wraps standard chess logic to allow for mid-turn state changes—handling concepts like rolling back a completed move, processing skip turns, etc.

- Custom State Serialization: Standard PGN breaks the moment an action card is played. Monochess uses a custom JSON-based serialization schema that deterministically records both the chess moves and the card actions. This allows the game state to be completely reproducible for history, replays, and validation.

- Durable Objects Game Server: Real-time multiplayer is handled entirely on the Edge via Cloudflare Durable Objects. The DO acts as the single source of truth, managing WebSocket connections, verifying actions against the ruleset, handling disconnects, and running the turn timers.

- D1 Persistence & Matchmaking: Using Cloudflare D1 to store the serialized game records, manage player authentication, and track ELO via a custom Glicko-2 rating implementation.

It's free to play here: https://monochess.pages.dev

Would love to hear what you think, or if you manage to find any absolutely broken card/move combos. There's also a feedback/bug report form on the site itself (writes to CF KV and a worker runs to email it to me (I swear I'm not sponsored by CF xd)).

LLM aid was minimal, but Gemini 3.5 Flash is pretty good for small UI enhacements, and generally organizing components in Svelte. Was pleasantly surprised.

[0] https://www.youtube.com/watch?v=vzkKs_b5css

Occupy Wall Street co-founder built an on-device AI for activists

https://gizmodo.com/occupy-wall-street-co-founder-built-an-ai-app-to-help-activists-seize-the-mea...
1•micahwhite•23s ago•0 comments

A funny thing happened on the way to teaching advanced AI core frontier tech

https://steverepetti.substack.com/p/collaborative-teaching-of-frontier
1•srepetti•1m ago•0 comments

Building Omegle for Exposed Webcams

https://alec.is/posts/building-omegle-for-exposed-webcams/
2•arm32•2m ago•0 comments

Building apps like the hero of 12 angry men

https://wman.substack.com/p/building-apps
1•tetek•3m ago•0 comments

MapRoot: Two OSS zero-days to cross-tenant RCE in Microsoft Planetary Computer

https://enclave.ai/blog/maproot-two-cross-tenant-rce-on-microsoft-planetary-computer
1•talhof8•3m ago•0 comments

Show HN: Flightdeck – self-hosted observability and control for AI agents

https://github.com/flightdeckhq/flightdeck
1•pykul•4m ago•0 comments

Ask HN: How to introduce cloud computing to high schoolers?

1•shivajikobardan•5m ago•1 comments

Acme CAA Extensions to Become Mandatory

https://www.feistyduck.com/newsletter/issue_137_acme_caa__extensions_to_become_mandatory
1•speckx•5m ago•0 comments

NASA satellites locate mysterious GPS jammer within several kilometers in Iran

https://arstechnica.com/gadgets/2026/05/nasa-satellites-can-spot-gps-jammers-on-earth/
1•ck2•7m ago•0 comments

From Chivalry to Involution in the Evolution of Wuxia

https://systemsthinkingcollection.substack.com/p/swords-on-the-margins
1•InputName•7m ago•0 comments

Creusot helps you prove your Rust code is correct

https://github.com/creusot-rs/creusot/tree/master
1•fanf2•8m ago•0 comments

AI Marketing and Growth Specilaist

1•AiGrowth•8m ago•1 comments

Soviet 80s supercomputer project "Start"

https://start.iis.nsk.su/
1•phront•10m ago•0 comments

The Visa Empire: Borders as a Business

https://www.lighthousereports.com/investigation/the-visa-empire-borders-as-a-business/
1•prakhar897•10m ago•0 comments

Giving LLMs a Formal Reasoning Engine for Code Analysis

https://yogthos.net/posts/2026-04-08-neurosymbolic-mcp.html
1•davidjade•12m ago•1 comments

New ad intelligence beta for app marketers –TikTok live,Meta/Google/Apple coming

https://appstorestatistics.com/ads-intelligence
1•tkrenn06•12m ago•0 comments

Spread: A simple, fast spreadsheet viewer written in Rust using GPUI

https://github.com/samuelcolvin/spread
1•sbt567•12m ago•0 comments

New York Passes Tax on the Ultra-Wealthy

https://www.cnbc.com/2026/05/28/new-york-mamdani-pied-a-terre-tax-passes.html
2•proofofcontempt•12m ago•0 comments

European Software

https://niqwithq.com/posts/european-software
1•speckx•15m ago•0 comments

Garnix Is Shutting Down

https://old.reddit.com/r/NixOS/comments/1tq47o4/garnix_is_shutting_down_and_being_open_sourced
1•flurie•15m ago•0 comments

Local-First and Portable CI

https://prefix.dev/blog/portable-ci-with-pixi
2•synparb•16m ago•0 comments

CNN sues Perplexity over 'verbatim' copycat articles

https://www.theverge.com/ai-artificial-intelligence/938893/cnn-perplexity-ai-copyright-lawsuit
1•thm•16m ago•0 comments

Learning from Ava:Lessons from Trustworthy AI for Policy and Dev Research

https://arxiv.org/abs/2604.17843
1•hek2sch•17m ago•0 comments

The Upcoming Sunset of DataSpell

https://blog.jetbrains.com/dataspell/2026/05/the-upcoming-sunset-of-dataspell/
1•BewareTheYiga•17m ago•1 comments

The 'brain as radio' model of consciousness – and what it means for AGI

https://www.salars.net/consciousness/brain-as-broadcast-receiver-series-part-1-the-radio-in-your-...
1•rsalars•17m ago•0 comments

Modern C++ Tutorial: C++ 11/14/17/20 On the Fly

https://changkun.de/modern-cpp/
1•ibobev•17m ago•0 comments

Searching for Birds

https://SearchingForBirds.VisualCinnamon.com/
1•robin_reala•17m ago•0 comments

Why Google's AI can't spell Google (or anything else)

https://techcrunch.com/2026/05/27/why-googles-ai-cant-spell-google-or-anything-else/
1•Brajeshwar•18m ago•0 comments

Websites have a new way to spy on visitors: analyzing their SSD activity

https://arstechnica.com/security/2026/05/websites-have-a-new-way-to-spy-on-visitors-analyzing-the...
3•Brajeshwar•18m ago•0 comments

Cache Hierarchy Matters for Pragmatism

https://www.khola.blog/p/the-pragmatic-programmer-after-the
1•bcapchickadee•19m ago•0 comments