53b31c2c44
update readme
2023-07-05 22:38:26 +02:00
1f85bc0810
fix readme
2023-07-05 22:08:47 +02:00
f504ad0ddf
add PostgreSQL instructions to README
2023-07-05 21:41:05 +02:00
07d943c1f3
update text file on cheating strat
2023-07-05 21:16:56 +02:00
ce15595322
add example config, change default db name
2023-07-05 21:13:01 +02:00
8f0ff1ecb2
update README with usage
2023-07-05 21:09:18 +02:00
37a342e63d
support db password in config file
2023-07-05 20:59:20 +02:00
967daf1914
Improve DB connection handling: Lazy init + config
...
Introduces a proper config file for db connection information
Also, connection now has to be explicitly initialized instead of this
being done on import: This is now done by the CLI function automatically
2023-07-05 20:54:26 +02:00
a014dee0da
update README
2023-07-05 20:49:58 +02:00
2b9715dafd
Add LICENSE
2023-07-05 17:31:23 +00:00
6b939061e5
fix bang in cli
2023-07-05 19:04:20 +02:00
ec60d5f700
clean up unneeded files, ignore test.py file
2023-07-05 19:02:09 +02:00
f94fe23f60
move executable cli file outside of package structure
2023-07-05 19:01:08 +02:00
8a2774bf93
add cli option to download all games
2023-07-05 18:49:35 +02:00
b3828baa5d
configure cache to store exported games forever
2023-07-05 18:48:19 +02:00
932340431f
Handle invalid player numbers on export
...
On hanab.live, some games have an invalid number of players
stored in the database, this leads to some games not being
able to be exported from the site.
We catch these cases and write occurrences to a local data file
2023-07-05 18:47:09 +02:00
f8ff2411a0
Check for correct number of players earlier. Add CLI for downloading
...
games
2023-07-05 16:46:14 +02:00
3c2c73d00b
fix check for num_players in download routine
2023-07-05 16:31:10 +02:00
b9068eebe4
implement cli command to init database
2023-07-05 09:33:55 +02:00
184129fca0
improve error handling when downloading games: Throw proper assertions, assume nothing about returned data
2023-07-05 09:00:03 +02:00
fabcc9ceb2
Cache variants.json and suits.json files
2023-07-04 22:30:56 +02:00
6190a156f4
reformat file
2023-07-04 22:19:18 +02:00
17195a17ad
Use appropriate app_dirs for cache and log files
2023-07-04 22:09:28 +02:00
a93601c997
Refactor imports, remove code in imported files
...
We now only use relative imports for files in the same directory
Also, only modules are imported, never classes/functions etc
Furthermore, main methods in package files have been removed,
since they do not belong there
2023-07-04 21:15:33 +02:00
6ae72a4b03
Adapt imports to new package structure
2023-07-04 18:53:18 +02:00
05e1822c3d
refactor files into proper submodules (not functional yet)
2023-07-04 18:52:59 +02:00
37f6f78333
check_game: some cleanup, better comments
2023-07-04 18:10:37 +02:00
7845c79889
export starting_player of games as well
2023-06-24 18:35:15 +02:00
9713bc7f7b
add usage to README
2023-06-24 17:43:56 +02:00
8e622a84f7
update README
2023-06-24 17:41:26 +02:00
b0aae46454
Merge branch 'main' of gitlab.com:kesslermaximilian/hanabi-suite
2023-06-24 17:40:36 +02:00
d782a072c6
add README
2023-06-24 17:39:50 +02:00
a50adae325
add README
2023-06-24 17:37:56 +02:00
558a341aeb
Merge branch 'greedy-solver'
2023-06-24 17:26:51 +02:00
8615e25c21
update gitignore
2023-06-24 17:25:54 +02:00
e85b7948c6
update test file
2023-06-24 17:25:25 +02:00
4f4ec7e7c2
update requirements
2023-06-24 17:25:19 +02:00
a91a6db47e
greedy_solver: add back Dispensable CardType to allow old greedy solver to function
2023-06-24 17:25:07 +02:00
673e5841a8
update instance finder to new db. supports timeouts now
2023-06-24 17:24:37 +02:00
9f0f85b604
deck analysis: check for dark cards at bottom of deck
2023-06-24 17:24:11 +02:00
75b0f95e0b
add max score to variants
2023-06-24 17:23:49 +02:00
2ca79dfc6c
hanabi instances: support differnt starting players
2023-06-24 17:23:29 +02:00
9f952c231f
download: support instances with some special options
2023-06-24 17:23:05 +02:00
205380d1fa
database: add entry for starting_player
2023-06-24 17:22:37 +02:00
19501aa4da
hanabi.py: raise error if to-be-replaced card is not in hand
2023-06-24 17:21:55 +02:00
6c91463893
add log files to gitignore
2023-05-25 17:01:25 +02:00
e43b062dda
add txt file with strategy
2023-05-25 17:00:53 +02:00
a427a2575e
start impl of better greedy solver
2023-05-25 17:00:18 +02:00
a1345a1976
implement some utils to query from game class
2023-05-25 17:00:02 +02:00
f45bde1883
add option to set minimum pace in sat solver
2023-05-20 21:45:51 +02:00