← All projects
Project record1 mention
Originally shared on Hacker News

Flexible turn-based game framework

A flexible turn-based game framework where game logic is written in JavaScript on the server and game state plus options are sent to clients, so platforms like SwiftUI, web, Unity, and WebXR only need to implement the UI, with a default/debug view that works for all games. Games run offline (via JavaScriptCore on iOS, natively on web) and support bots for all games that randomly choose options, providing a simple opening for reinforcement learning.

Last shared For Developers building turn-based games across platforms (SwiftUI, web, Unity, WebXR)
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Flexible turn-based game framework

    A flexible turn-based game framework where game logic is written in JavaScript on the server and game state plus options are sent to clients, so platforms like SwiftUI, web, Unity, and WebXR only need to implement the UI, with a default/debug view that works for all games. Games run offline (via JavaScriptCore on iOS, natively on web) and support bots for all games that randomly choose options, providing a simple opening for reinforcement learning.

    Audience: Developers building turn-based games across platforms (SwiftUI, web, Unity, WebXR)

    Posted by @soylentgraham · Original source ↗

    Source text · @soylentgraham · · Source ↗

    I made a very flexible turn-based framework - write the game logic on server in javascript, then state+options are given to clients, so platforms (swiftui, web, unity, webxr etc) "just" have to implement UI on top (Also means I have a default/debug view, which works for all games). The games can run offline (via javascriptcore on ios, natively on web etc) and supports bots for all games (they randomly choose options on their turn) which has a very simple opening to get some reinforcement learning in.