Commit Graph

155 Commits

Author SHA1 Message Date
87c429e586
remove extra ; 2023-10-13 00:18:08 +02:00
b69cb6d974
Rework probability printing
Outputting of probabilities is now done in unified way.
This ensures that we can handle both rational and floating-point
probabilities in all program parts properly.

The compile-time macro
NUSE_RATIONAL_PROBABILITIES
can now be defined to use floating-point probabilities instead
of real rational ones.

Using floating-point results in roughly 10% speedup.
2023-10-02 12:37:24 +02:00
0cc069485d
CLI: align action probabilities in output 2023-09-26 23:20:49 +02:00
3fd64bc70f
CLI: sort by probability when asking for draw
Also better alignment of output in list of drawable cards
2023-09-26 22:26:36 +02:00
129f8ceaec
fix links in readme 2023-09-22 20:28:27 +02:00
4adb835e7e
further readme cleanup 2023-09-22 19:00:57 +02:00
f1e415241a
fix some readme errors 2023-09-22 18:59:21 +02:00
bc3af305ea
better installation instructions 2023-09-22 18:57:38 +02:00
f300c61c81
cli: treat currently played card as trash in draw selection 2023-09-22 15:27:27 +02:00
fdd59216f6
fix: proper linking against readline 2023-09-19 19:25:27 +02:00
f02870c975
clean up unused var 2023-09-19 18:17:42 +02:00
71dbc0d473
Improve quitting: catch SIGINT and ask for confirmation 2023-09-19 17:54:21 +02:00
05d348b7e4
correct action parsing 2023-09-14 17:06:06 +02:00
3211a20c9c
better usage printing in cli 2023-09-06 12:05:29 +02:00
dc340b2447
better usage 2023-09-06 12:02:08 +02:00
25c7a61d8e
fix readme 2023-09-06 11:57:35 +02:00
3d7015f63d
fix color-initials command 2023-08-13 00:10:00 +02:00
62bf71a2f2
print duration 2023-08-12 23:13:16 +02:00
78a703434d
adjust getter method for games to start turn counting at 1 2023-08-12 20:10:28 +02:00
849c0a6538
change some types 2023-08-12 19:55:10 +02:00
38e99cf662
remove unused card operators 2023-08-12 19:46:14 +02:00
70a6000884
clean up imports 2023-08-12 19:43:22 +02:00
034a7a95a1
split download.h into separate header and source 2023-08-12 19:15:05 +02:00
4e860f49cc
better user output/error handlin when game cannot be initialized 2023-08-12 18:58:12 +02:00
b1c1f41c6e
add cli command to dump id parts 2023-08-12 18:48:01 +02:00
012b73879f
add sorts to position vectors for bijective id mapping 2023-08-12 14:00:54 +02:00
1c716ffeab
remove unused methods, put into own files 2023-08-12 12:17:55 +02:00
23978ada76
improve error handling 2023-08-12 12:17:55 +02:00
cc9f073d51 Update README.md 2023-08-12 10:03:18 +00:00
ffad109aef Update README.md 2023-08-12 09:52:17 +00:00
46554a7e33
split into src and include folder 2023-08-12 11:44:56 +02:00
df559929b0
improve printing 2023-08-12 11:09:06 +02:00
76c10dc381
support reverting multiple turns at once 2023-08-12 10:50:16 +02:00
f137f9f67c
fix lookup method to also include trivials cases 2023-08-12 10:32:32 +02:00
a95efaea4a
expand cli interface
new commands opt and initials
2023-08-12 10:19:04 +02:00
4718698ddc
add history and command completion to readline 2023-08-12 09:36:06 +02:00
74fe5513da
improve cli interface: easier handling, more input validation 2023-08-12 08:50:28 +02:00
a8818418e9
add cli interface 2023-08-12 00:04:02 +02:00
a4e9560753
add function to enumerate possible next states upon specific action 2023-08-11 18:28:12 +02:00
6ae9244fa6
print best actions in current state 2023-08-11 17:05:52 +02:00
c77215ed14
fix initialization bugs 2023-08-11 16:54:11 +02:00
57ebc3d478
add method to list reasonable moves 2023-08-11 15:41:03 +02:00
907fb3ae47
refactor. make reverting possible in non-backtracking state 2023-08-11 14:39:55 +02:00
ec203198c0
simplify function logic, expose more of interface 2023-08-11 14:39:31 +02:00
a6a8fb78af
refactor attributes 2023-08-11 13:47:57 +02:00
a116ec45e3
simplify play card logic: always consider bombs 2023-08-11 12:12:09 +02:00
3be7378903
rename function, rework backtrackaction 2023-08-11 11:43:05 +02:00
44db744ae3
refactor backtracking function 2023-08-10 18:27:25 +02:00
17405b0f00
code cleanup
- unified function to iterate over all possible draws when discarding or
  playing
- remove macro usages
2023-08-10 18:23:33 +02:00
78b3335414
adjust size of static vector 2023-08-10 14:07:18 +02:00