From 57c868d9f43fe8c2645cf87034911d3db26faf01 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 11 Mar 2026 21:55:05 -0700 Subject: [PATCH] Add an implementation of Lines of Action This comes from a Claude-assisted port of the Lines of Action implementation I had made originally in C which can be found here: https://git.cworth.org/git?p=loa --- lmno.js | 3 +- loa-board.js | 244 ++++++++++++++++++++++++++++++++++++++++ loa.js | 74 ++++++++++++ templates/loa-game.html | 16 +++ 4 files changed, 336 insertions(+), 1 deletion(-) create mode 100644 loa-board.js create mode 100644 loa.js create mode 100644 templates/loa-game.html diff --git a/lmno.js b/lmno.js index 0f89f0f..22e1c6f 100644 --- a/lmno.js +++ b/lmno.js @@ -132,7 +132,8 @@ const engines = { scribe: require("./scribe").Game, empathy: require("./empathy").Game, letterrip: require("./letterrip").Game, - anagrams: require("./anagrams").Game + anagrams: require("./anagrams").Game, + loa: require("./loa").Game }; class LMNO { diff --git a/loa-board.js b/loa-board.js new file mode 100644 index 0000000..dd135cb --- /dev/null +++ b/loa-board.js @@ -0,0 +1,244 @@ +/* Lines of Action - shared game logic (server and client) + * + * In the browser this file is loaded via + + +{% endblock %} + +{% block page %} +

Lines of Action

+ +
+
+{% endblock %} -- 2.45.2