Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
87f23dc
oonpia basics
th555 Dec 20, 2025
2e3e547
oonpia basics
th555 Dec 20, 2025
a59dba5
automatically pick valid or most likely stone type on click
th555 Dec 20, 2025
1ec4396
better move string validation
th555 Dec 21, 2025
a4dde42
click handling
th555 Dec 22, 2025
581b44c
apply move from object
th555 Dec 22, 2025
c935b1a
small fixes, move generation
th555 Dec 22, 2025
fa99a72
fix isSelfCapture, disable move generation
th555 Dec 22, 2025
9cec6f8
custom random moves
th555 Dec 22, 2025
665a6ef
game end, all rules implemented
th555 Dec 25, 2025
41eb681
custom colours, komi pie using builtin pie
th555 Dec 28, 2025
4fc6a55
display customization
th555 Dec 29, 2025
6d2aea7
oonpia wip
th555 Jan 8, 2026
07930b6
Merge branch 'develop' of github.com:th555/abstractplay_gameslib into…
th555 Jan 15, 2026
c89a9ad
small tweaks
th555 Feb 21, 2026
95f2101
experimental
th555 Feb 21, 2026
19d66bb
Merge branch 'develop' of github.com:th555/abstractplay_gameslib into…
th555 Feb 21, 2026
cd6f033
fix msg
th555 Feb 22, 2026
6c4aded
description
th555 Feb 22, 2026
731185e
complete=0 to make cycling through pieces possible
th555 Feb 22, 2026
85d7bec
Merge branch 'develop' of github.com:th555/abstractplay_gameslib into…
th555 Feb 22, 2026
24ef185
set canrender
th555 Feb 22, 2026
d794ab7
Merge branch 'develop' of github.com:th555/abstractplay_gameslib into…
th555 Feb 22, 2026
6dc1063
Merge branch 'develop' of github.com:th555/abstractplay_gameslib into…
th555 Mar 5, 2026
e3ecb21
oonpia: use new customization functions
th555 Mar 5, 2026
d48f27e
use bestcontrast in markers
th555 Mar 7, 2026
62d32ed
Merge branch 'develop' of github.com:th555/abstractplay_gameslib into…
th555 Mar 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion locales/en/apgames.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
"magnate": "The terminology of some Magnate actions has been altered for clarity and brevity. Completely developing a new property is called the \"Buy\" action; purchasing a deed for a new property is called \"Deed\", developing deeds (that is, adding tokens to a deeded property, whether it results in the deed becoming fully developed or not) is called \"Add\". (Selling a card and trading suit tokens 3 for 1 are unchanged.)\n\nIn order to speed up the process of rolling for resources, there are two additional actions:\n* \"Prefer\" is for setting your preference of which suit token to take when a deed pays out on your opponent's roll. If you do not set an explicit preference, the code will choose the rarer token for you based on your non-crown suits and current supply of tokens. The currently preferred token is circled in the UI, but your personal preference is never visible to the other player.\n* \"Choose\" is a mandatory first action for collecting suit tokens when a deed pays out on your own roll. (In all cases where you need to choose a suit token that is not already among your tokens, you still click on the appropriate token pile.)\n\nBecause you can perform several actions during a ply in any order, there is also an \"Undo\" action to back out your most recent action, whether or not it was complete.\n\nNote that only the final resource die result is displayed, but the distribution of expected outcomes is still that of rolling 2d10 and taking the higher value. Taxation happens when the lower of 2d10 comes up 1; a suit die is rolled (or two, in the double taxation variant), and the suit(s) will be displayed underneath the resource result. The roll is logged at the end of a player's turn, and is attributed to the next player (who would have rolled in the physical game). Except for a \"Choose\", no user action is required; resources are added and/or removed automatically by the server in between turns.\n\nWhen a player is ahead in a district, the Pawn or Excuse for that district is outlined in that player's color. The first tiebreaker score (total property value) is displayed in parentheses after the district score. The second tiebreaker is total number of tokens remaining.",
"mchess": "If there have been seven consecutive turns without a capture, someone can \"call the clock\" by adding an asterisk (*) to the end of their move. This can only be done by selecting the move from the drop-down list. After another seven turns with no capture, the game will end and be scored.",
"murus": "The default ruleset is \"Advanced Murus Gallicus\" (with catapults). By default, your first move is to redistribute one of your starting towers as walls on your second row. Additionally, the standard pie rule is also available. There are three variants you can mix and match:\n\n* \"Basic\" reverts the game to the \"no catapult\" state.\n* \"Static\" disables the initial tower redistribution.\n* \"Escape\" eliminates the breakthrough win condition.",
"oonpia": "Either use the legend to select a piece, or click the same location multiple times to cycle through all possible pieces. Blocked cells are highlighted: a translucent dot means only a dotted stone can be placed there (i.e. blocked for plain pieces), a translucent piece means only a plain piece can be placed there (i.e. blocked for dotted pieces). If both highlights are present, the the cell is blocked for all pieces.",
"oonpia": "Either use the legend to select a piece, or click the same location multiple times to cycle through all possible pieces. Blocked cells are highlighted: a translucent dot means only a dotted stone can be placed there (i.e. blocked for plain pieces), a translucent piece means only a plain piece can be placed there (i.e. blocked for dotted pieces). If both highlights are present, then the cell is blocked for all pieces.",
"oware": "This implementation follows the common tournament rule that grand slam moves are allowed, but no pieces are captured. Depicting state changes in sowing games is challenging. The initial chosen pit is marked, as is any capture. Small numbers appear to show the change in the number of stones in each pit. If you believe you have encountered a bug, please let us know in Discord.",
"pacru": "This implementation adheres to the 2011 rule change that requires at least one opponent to have at least nine tiles on the board before meetings will trigger.",
"pigs": "Unlike the old Super Duper Games implementation, this one implements the core rule set. Each player enters all five moves, and they are resolved at once.\n\nMovement is resolved before damage is applied.",
Expand Down
12 changes: 10 additions & 2 deletions src/games/oonpia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,11 @@ export class OonpiaGame extends GameBase {
((rep.board! as BoardBasic).markers!).push({
type: "dots",
points: [{row: y, col: x}],
colour: "#000",
colour: {
func: "bestContrast",
bg: "_context_board",
fg: ["#000000", "#ffffff"],
},
opacity: 0.2,
size: 0.3
})
Expand All @@ -1126,7 +1130,11 @@ export class OonpiaGame extends GameBase {
((rep.board! as BoardBasic).markers!).push({
type: "dots",
points: [{row: y, col: x}],
colour: "#000",
colour: {
func: "bestContrast",
bg: "_context_board",
fg: ["#000000", "#ffffff"],
},
opacity: 0.2,
size: 0.9
})
Expand Down