Commit Graph

110 Commits

Author SHA1 Message Date
35e78f4753
add 6th initial to color initials 2023-05-13 13:06:49 +02:00
fceeeb376d
sat: adjust print_model to instances with variable deck sizes 2023-05-13 13:05:58 +02:00
a5310f8885
implement color and rank touching methods for variants 2023-05-13 12:33:58 +02:00
7d8e03fca0
add more comments and restrictions on properties of variants. calculate available clues in each variant 2023-05-13 00:37:19 +02:00
c0f007c15c
add flag for deceptive special rank 2023-05-13 00:01:35 +02:00
98c9f56f36
fix database regarding difference of no and empty color/rank clues 2023-05-12 23:52:04 +02:00
b29b7af2b0
initiale variants class with list of suit classes 2023-05-12 23:16:24 +02:00
b133e86769
rename database fields 2023-05-12 23:15:53 +02:00
49792f530d
add suit class 2023-05-12 21:36:18 +02:00
a85d1e5f9a
rework variants file: use DB-based access to variants information 2023-05-12 20:12:13 +02:00
550df72a28
move initialization of tables into own schema file 2023-05-12 19:05:05 +02:00
406348f07e
ensure correct ordering of suits in variant. add some indices 2023-05-12 18:26:27 +02:00
9f37572876
remove legacy suits file 2023-05-12 15:43:42 +02:00
22ae926087
add suits file from hanab.live 2023-05-12 15:35:48 +02:00
6258315a4f
database: convert hanab.live json files into readable tables for suits and variants 2023-05-12 15:35:18 +02:00
a9026be6f6
rename suits file 2023-05-12 14:03:31 +02:00
1868fbad1f
add json file with information on all suits 2023-05-12 12:44:55 +02:00
3cc49b4813
stash 2023-05-11 15:15:15 +02:00
a715bda02c
sat: support ClueStarved instances 2023-05-10 19:23:23 +02:00
3a1aee1502
sat: fix equivalence of clue incrementation 2023-05-10 17:44:41 +02:00
892c5ff7be
fix printing of model of sat 2023-05-10 17:44:16 +02:00
5598887c64
model clue starved in hanabi instances/games 2023-05-10 17:30:57 +02:00
9886e68084
correct return value in case of infeasible instance 2023-05-09 17:44:37 +02:00
edcdaa8fd2
download: fix parsing of var id, better error handling 2023-05-08 23:27:47 +02:00
c47ca7ccc5
sat.py: correctly export model after game ended 2023-05-08 23:25:09 +02:00
d91dec3c81
add method to check replay for last feasible state (binary search) 2023-05-06 23:59:03 +02:00
ab82ec00ed
insert into seeds db before into games 2023-05-06 23:51:26 +02:00
87524addd6
hanabi.py: support adding arbitrary clues for nicer replays 2023-05-06 22:03:23 +02:00
9fe456f0f9
hanabi.py add attribute to retrieve max score of instance 2023-05-06 20:13:36 +02:00
303158bc25
sat: annotate function return type. use deep copy for returning solution to avoid modifying passed game state 2023-05-06 19:41:50 +02:00
bdefe7aa34
hanabi.py: do not set values when reading discard or play actions from json. add equality operator to Action type 2023-05-06 19:02:38 +02:00
71951ac929
adjust download method also for games whose seed is unknown before 2023-05-06 17:42:27 +02:00
3a00879e03
hanabi.py: implement taking arbitrary actions, support striking out 2023-05-06 17:41:33 +02:00
9cd87445f2
fix missing self. in hanabi.py 2023-05-06 12:29:52 +02:00
0e6067ffe3
add try/except block around subprocess 2023-05-06 09:06:01 +02:00
1172405994
add requirements.txt dependency file 2023-05-06 08:50:00 +02:00
ce3d38537f
add pretty print method for decks 2023-03-18 15:18:04 +01:00
63146046e0
add methods to analyze individual suits and what cards to pick 2023-03-18 15:17:47 +01:00
dee13938cf
adjust deck analyzer to use hanabi instances 2023-03-18 14:08:27 +01:00
ddeb19265d
adjust sat solver to new files 2023-03-18 13:18:16 +01:00
8730551055
refactor greedy solver for new hanabi classes 2023-03-18 10:17:24 +01:00
a056c83869
fix a few missing self attributes 2023-03-18 10:17:09 +01:00
a90423e5c4
fix a few typos yielding errors 2023-03-18 01:27:32 +01:00
7aa8a78a9d
rewrite compress methods for new GameState object, proper error handling 2023-03-18 01:19:04 +01:00
b0d0aaae1b
refactor: proper classes for hanabi instances and games 2023-03-18 01:17:32 +01:00
c43b0fc475
deck_analyzer: also find seeds where handsize is too small to store all
valuables
2023-03-17 11:58:04 +01:00
93eca1f0b1
greedy_solver: remove global variables. allow exporting games with no actions 2023-03-17 11:55:46 +01:00
0851f83e12
compress.py: add method for colored output 2023-03-17 11:55:07 +01:00
c381a4c129
compress.py: make executable and decompress argument from command line 2023-03-17 11:54:55 +01:00
0756bba205
better testing for greedy solver. implement better handling of copies of cards 2023-03-16 14:07:42 +01:00