aboutsummaryrefslogtreecommitdiff
path: root/go/game
Commit message (Collapse)AuthorAgeFilesLines
...
* add attack unit tests and documentationFlorian Fischer2025-07-062-2/+60
|
* add more card unit testsFlorian Fischer2025-07-061-0/+31
|
* fail if loading an unknown card and add more poc test casesFlorian Fischer2025-07-063-2/+102
|
* make draft more flexibleFlorian Fischer2025-07-061-2/+30
| | | | Add more draft specific errors and a function to replace AI by a new player.
* add methods to control a LocalState without enforcing game rulesFlorian Fischer2025-07-061-7/+40
|
* make draft more flexibleFlorian Fischer2025-07-061-24/+85
|
* add initial support for marshaling actions to plain textFlorian Fischer2025-07-062-0/+125
|
* refactor playerControlFlorian Fischer2025-07-066-37/+271
| | | | | | | Allow to propagate errors in order to handle them acordingly. Use playerNotifications by value to reduce the amount of allocations. Add session managment playerNotifications. Support marshalling notifications to plain text.
* error out if parsing the map failsFlorian Fischer2025-07-061-1/+4
|
* add new random draft pick actionFlorian Fischer2025-07-061-0/+5
|
* add RandomCard and String to PoC interfaceFlorian Fischer2025-07-061-2/+15
|
* support king gamesFlorian Fischer2025-07-065-26/+91
|
* prevent targeting the same object multiple timesFlorian Fischer2025-07-031-2/+15
|
* improve interface documentationFlorian Fischer2025-07-031-2/+5
|
* move hand card removal to the play action's costsFlorian Fischer2025-07-032-6/+4
|
* change phase names to match the rulesFlorian Fischer2025-07-033-18/+18
|
* support marshaling and unmarshaling of PoCsFlorian Fischer2025-07-032-0/+57
|
* make retrieveCardDefinition errors recoverableFlorian Fischer2025-07-031-9/+25
| | | | | This is needed ro test if a user provided path is an actual card and not crash the program if not.
* export resource gainFlorian Fischer2025-07-031-3/+3
|
* minor whitespace fixesFlorian Fischer2025-07-031-1/+1
|
* export tile neutralizingFlorian Fischer2025-07-032-3/+3
|
* export more information during a draftFlorian Fischer2025-07-032-4/+11
|
* return the player after adding itFlorian Fischer2025-07-032-4/+6
|
* allow to add players to draftFlorian Fischer2025-07-031-0/+7
|
* make PlayerControl a CloserFlorian Fischer2025-07-033-1/+12
|
* make draft pool big enoughFlorian Fischer2025-07-031-11/+12
|
* small code modernization and refactoringFlorian Fischer2025-07-034-11/+7
|
* use constant exportet errorsFlorian Fischer2025-06-062-6/+8
|
* fix retrieving of the active playerFlorian Fischer2025-05-011-1/+1
| | | | Fixes: 4e2ab55d
* implement simple bot based draftFlorian Fischer2025-05-015-3/+175
|
* improve the sealed activityFlorian Fischer2025-05-011-0/+18
| | | | | | Do not export the sealed client type. Validate the entered set list. Show the default set list.
* document map dependencyFlorian Fischer2025-04-131-0/+3
|
* improve codeFlorian Fischer2025-01-274-8/+5
| | | | | | * explicitly ignore errors where appropriate * do not append in a loop * specify format string in Errorf
* finish the shy AIFlorian Fischer2025-01-273-13/+113
|
* add clownfish implementationFlorian Fischer2025-01-271-0/+16
|
* make walls not suitable for permanentsFlorian Fischer2025-01-271-0/+3
|
* finish the target-oriented aiFlorian Fischer2025-01-274-38/+167
| | | | | | | | | Fix path selection choosing a to big step, since the next step was determined by the moving range and not the actually available movement tiles. Fix generating a target for the AI by introducing a dummy action to support "enemy" target constraints.
* improve and fix slow action timing checkFlorian Fischer2025-01-271-4/+6
| | | | | Do not allow to declare slow play actions in the client. Fix the slow action check in the game state.
* introduce game.State interface abstractionFlorian Fischer2025-01-2721-342/+458
| | | | | This allows to not use the internal game state directly from client code.
* support calculating Costs including chosen variadic costsFlorian Fischer2025-01-271-3/+14
|
* fix character range loop in cost parsingFlorian Fischer2025-01-271-1/+1
|
* pass the PlayAction to the cards onPlay implementationsFlorian Fischer2025-01-275-79/+106
| | | | | This is done to propagate the chosen variadic play cost to the card implementation.
* add helper to get the game state from an actionFlorian Fischer2025-01-271-3/+6
|
* implement appear!Florian Fischer2025-01-271-0/+18
|
* fix available unit actionsFlorian Fischer2025-01-272-16/+22
|
* check if Targets allow a selectionFlorian Fischer2025-01-271-0/+10
| | | | This fixes highlighting when an action needs no targets at all.
* only generate ArtifactMoveActions if the switched positions are suitableFlorian Fischer2025-01-272-9/+16
|
* get position from containing permanentFlorian Fischer2025-01-271-3/+3
|
* implment upkeep costs using ResourceCostsFlorian Fischer2025-01-274-13/+10
|
* fix some kraken card implementationsFlorian Fischer2025-01-271-2/+7
| | | | | * Devour the Poor!: Check if a card is buyable * Frost Pylon: Only spawn on free tiles