Commit graph

268 commits

Author SHA1 Message Date
a1a5cfac20 bugfix: properly copy set instead of using ref 2024-10-11 21:37:48 +02:00
4f1bedd836 rework deck analyzer: more thorough analysis
also more detailed loss reasons
2024-10-11 17:33:43 +02:00
eae229408d do not pass var name 2024-10-11 17:32:56 +02:00
b4e0da5a4e store winning lines for solved decks in DB 2024-10-10 16:32:07 +02:00
4a9fb8896e use serial key for cert games 2024-10-10 16:31:39 +02:00
c04940fb9b db interface: expand for new cert game tables 2024-10-10 16:30:43 +02:00
397dd9d641 make timeout a parameter when solving seeds 2024-10-10 13:40:31 +02:00
e5efe517ee improve deck analyzer: squeezes 2024-10-10 13:40:05 +02:00
d73b3d5a25 fix return value type 2024-10-10 13:39:48 +02:00
8182113666 deck generation: adapt to new DB (seed classes) 2024-10-10 13:39:14 +02:00
171cdab6e2 add classes, num and solve time to stored seeds. add tables for cert
games
2024-10-10 13:38:23 +02:00
28aee4cd3d remove redundant prints 2024-10-09 17:50:52 +02:00
2eeeade1e5 Seed generation: Generate custom random seeds independent of hanab.live 2024-10-09 17:49:48 +02:00
2e370cbb88 DB: cascade delete of deck on seed deletion 2024-10-09 17:49:48 +02:00
9c8d1940fe CLI: Add option to show seeds easily 2024-10-09 17:49:48 +02:00
331272cca2 HanabGame: add option to terminate game with action 2024-10-09 17:49:48 +02:00
dd131259c3 Deck analyzer: fix bug, improve bounds by considering bottom of deck 2024-10-09 17:44:46 +02:00
91f583be92 produce links to shared json replays instead of private 2024-10-09 17:44:28 +02:00
3744cc20b1 SAT formulation: add progress of deck 2024-10-07 14:50:11 +02:00
261db718b4 adapt seed solving to new storage of decks 2024-10-07 14:49:56 +02:00
dca46364d3 disable SSL connection to PostgreSQL 2024-10-07 14:49:29 +02:00
a944bda70e
CLI: add option to decompress hanab.live JSON links
This allows easy conversion of shortened JSON links
to the full-fledged JSON game format, which can be
used with other programs
2024-06-04 00:02:57 +02:00
1c656de615
Adjust games_db_interface to database format
Also adjust the check_game method to use new interface.
2024-03-19 14:57:11 +01:00
6651ef9145
update download url 2024-03-18 14:58:07 +01:00
8716ac7514
add unidecode to requiremenents 2024-03-18 14:34:15 +01:00
247576da0e
adjust seed solving code 2024-03-18 14:09:25 +01:00
9ef1add7ab
bugfix: allow 3-suit variants 2024-03-18 14:09:25 +01:00
7a6e62b8d9
add cli option to start seed solving 2024-03-18 14:09:25 +01:00
afecc6f63d
Rework database schema: Replicate server and store all info 2024-03-18 14:09:25 +01:00
51e09cd943
represent r0 as kt 2024-01-14 13:09:41 +01:00
3ac51d574e
fix clue cost in ClueStarved variants 2023-12-08 12:25:03 +01:00
daea750535
Support taking general actions also in general game 2023-11-23 12:30:50 +01:00
d9afe3bff4
Support parsing JSON games without variant
This enables to parse games without requiring DB access
and a full specification of all the variants.
The downside is that in such games, legal clues cannot
be modeled perfectly, but for theoretic analysis of the game
this is still irrelevant.
2023-11-23 11:44:31 +01:00
40baa59bd3
add method to check for criticality of card 2023-11-10 12:05:23 +01:00
c0e63fe17e
fix import path 2023-11-10 12:05:14 +01:00
c00c88974c
fix to_json function 2023-11-10 01:17:49 +01:00
9200371e3a
add missing to_json mehods 2023-08-08 14:10:17 +02:00
511c3bc7c6
better return type 2023-08-08 14:06:44 +02:00
3ffdfc10a5
fix bug 2023-08-08 13:59:28 +02:00
5a2329fa0b
add export to json of games 2023-08-08 13:53:48 +02:00
330baff33c
fix bug expecting seed 2023-08-08 12:23:42 +02:00
e8a6b83d43
add draw pile method 2023-08-08 12:19:16 +02:00
e8f3405d58
increment version 2023-08-08 12:16:09 +02:00
cd94f6fa68
add method to parse game from json 2023-08-08 12:12:42 +02:00
c65489655d
change src folder structure 2023-08-08 12:10:59 +02:00
ffadd53935
fix 2023-08-08 11:37:48 +02:00
d2bb254f31
fix 2023-08-08 11:37:28 +02:00
e0d5f46a7f
rename into src folder 2023-08-08 11:36:31 +02:00
ee58a2fb8d
add pyproject.toml 2023-08-08 11:34:47 +02:00
a85504cc1c
adjust README: easier setup of DB 2023-08-02 11:50:08 +02:00