Play liveChoose your opponent
Join
30 lines · 1.6 KB Raw Permalink History
1sgs.mjs is built (src/build.mjs) from wmzy/sanguosha, https://github.com/wmzy/sanguosha, commit
28f4b693b654a6365d143a80003877219f6e08b22: its rules engine, headless client move lists, heuristic AI and replay
3recorder, with this project's src/table.ts, play.ts, room.ts and bots.ts. generals.json is generated from it.
4Also bundled, under the MIT licence: eventsource (Copyright (c) EventSource GitHub organisation) and
5eventsource-parser (Copyright (c) 2026 Espen Hovlandsdal), which the upstream's headless client imports; they are never
6used here (no network).
7
8The upstream's licence:
9
10MIT License
11
12Copyright (c) 2025 三国杀项目作者
13
14Permission is hereby granted, free of charge, to any person obtaining a copy
15of this software and associated documentation files (the "Software"), to deal
16in the Software without restriction, including without limitation the rights
17to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18copies of the Software, and to permit persons to whom the Software is
19furnished to do so, subject to the following conditions:
20
21The above copyright notice and this permission notice shall be included in all
22copies or substantial portions of the Software.
23
24THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30SOFTWARE.