Commit graph

248 commits

Author SHA1 Message Date
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
fb3f25b890
document installation of SAT solver 2023-07-27 16:22:14 +02:00
881c21cc9c
make shebang use env 2023-07-27 16:14:31 +02:00
193564bfd6
fix typo in README 2023-07-27 15:45:20 +02:00
0525bd4768
update README 2023-07-27 15:44:39 +02:00
2f4a16995a
remove unneeded text file 2023-07-11 21:54:13 +02:00
2a230d1444
add progress bar when checking for infeasibility 2023-07-08 11:53:30 +02:00
29cae8f139
rework analysis of upper bounds: compute all bounds now, insert into DB properly 2023-07-08 09:48:22 +02:00
91f3c73eb3
DB: add schemas for lower and upper bounds on score 2023-07-08 09:47:57 +02:00
98bbe02495
improve on game: add todo and provide list of dark suits 2023-07-08 09:47:10 +02:00
f322766dca
rework searching for solutions from hanab.live database
respect detrimental characters,
store found game_ids in certs table
2023-07-07 22:37:37 +02:00
11279a1c68
database schema: add (in)feasibility tables, add detrimental_characters 2023-07-07 22:30:53 +02:00
b893a65a64
improve logging output when downloading games 2023-07-07 19:44:20 +02:00
176752c4e3
download: check for detrimental characters 2023-07-07 18:20:04 +02:00
eb587c1cd6
add method to check for all remaining games not in DB 2023-07-07 14:32:39 +02:00
722838243f
make starting_player a property of instances, not games 2023-07-07 14:32:11 +02:00
3ab35eb10d
make starting_player an attribute of seeds instead of games
Since all games on a particular seed have the same starting player,
we should store this accordingly.

Note that this option is only used for old seeds (before 2020)
from the hanab.live database.

Regardless, we need to support this to be able to support these old
games.
2023-07-07 14:20:24 +02:00
fb645b47b4
do not treat failed requests as erros in site_api 2023-07-07 14:19:57 +02:00
301cfe10e8
when downloading: refresh api queries on row count mismatch 2023-07-07 08:41:44 +02:00
71db1e9d26
log variant id on num_player mismatch 2023-07-06 23:49:33 +02:00
5dbf8a5631
get rid of bad print statement 2023-07-05 22:54:29 +02:00