From 6c6bb2ab5ec93a92fe7287a374506cd12600abef Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 11 Mar 2026 21:57:03 -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 --- index.html | 3 + loa/index.html | 52 ++++++ loa/loa-board.js | 244 +++++++++++++++++++++++++++ loa/loa-client.js | 212 +++++++++++++++++++++++ loa/loa-view.js | 419 ++++++++++++++++++++++++++++++++++++++++++++++ loa/loa.css | 72 ++++++++ 6 files changed, 1002 insertions(+) create mode 100644 loa/index.html create mode 100644 loa/loa-board.js create mode 100644 loa/loa-client.js create mode 100644 loa/loa-view.js create mode 100644 loa/loa.css diff --git a/index.html b/index.html index 81a6b19..acace47 100644 --- a/index.html +++ b/index.html @@ -77,6 +77,9 @@
  • Scribe
  • +
  • + Lines of Action +
  • diff --git a/loa/index.html b/loa/index.html new file mode 100644 index 0000000..5b577d4 --- /dev/null +++ b/loa/index.html @@ -0,0 +1,52 @@ + + + + + + + Lines of Action + + + + + + + + +
    + +

    Lines of Action

    + +

    + Connect all of your pieces into a single group. Move a piece + in a straight line (row, column, or diagonal) exactly as many + squares as there are pieces (of either color) along that line. + You may jump your own pieces but not your opponent's, and you + may capture by landing on an opponent's piece. +

    + +
    +
    + +
    + +
    + +
    + +
    + + +
    +
    + +
    + + + diff --git a/loa/loa-board.js b/loa/loa-board.js new file mode 100644 index 0000000..dd135cb --- /dev/null +++ b/loa/loa-board.js @@ -0,0 +1,244 @@ +/* Lines of Action - shared game logic (server and client) + * + * In the browser this file is loaded via