Commit Graph

6633 Commits

Author SHA1 Message Date
spinerak
353a676301 temporary push: 40% faster generation test
Small changes in logic make the generation 40% faster.
I'll have to think about how big the changes are. I suspect they are rather limited.
If this is the way to go, I'll remove the temp file and redo the YachtWeights file, I'll remove the functions there and just put the new weights here.
2024-06-13 00:00:54 +02:00
spinerak
12ecd9f26b Revert "Hash categories (which makes it slower :( )"
This reverts commit 34f2c1aed8.
2024-06-11 21:10:59 +02:00
spinerak
34f2c1aed8 Hash categories (which makes it slower :( )
Maybe I messed up or misunderstood...
I'll revert this right away since it is 2x slower, probably because of sorted instead of sort?
2024-06-11 21:10:49 +02:00
spinerak
42e9af239d Removed sorted from category list 2024-06-11 20:41:15 +02:00
spinerak
b1ed50eab3 remove ) too many 2024-06-11 20:22:41 +02:00
spinerak
7a9b3e2d8b .append instead of += for single items, percentile function changed
Also an extra comment for location ids.
2024-06-11 19:33:36 +02:00
spinerak
36265257a1 Remove lookup_id_to_name entirely
I for sure don't use it, and as far as I know it's not one of the mandatory functions for AP, these are item_name_to_id and location_name_to_id.
2024-06-11 19:14:05 +02:00
spinerak
0aa2b31ca4 Remove location "0", we don't use that one 2024-06-11 19:11:17 +02:00
spinerak
40ef9aab19 some readability improvements 2024-06-11 19:10:49 +02:00
spinerak
570af1ab4c change .random and used enumerate 2024-06-10 19:36:55 +02:00
spinerak
17d9f66ba3 remove .keys() 2024-06-10 18:58:50 +02:00
spinerak
e2f056734b Instead of turning it into a tuple, you can just make a tuple literal 2024-06-10 18:57:58 +02:00
spinerak
03ba657f4f return arguments instead of making a list (will 🐶 later) 2024-06-10 18:56:46 +02:00
spinerak
93812bb629 faster collection of categories 2024-06-10 18:55:12 +02:00
spinerak
4839bf49a6 small optimization ListState 2024-06-10 18:52:18 +02:00
spinerak
aa0886cd61 iterate keys and values of a dict together 2024-06-10 18:40:11 +02:00
spinerak
da26408760 options format 2024-06-10 18:39:12 +02:00
spinerak
a8239625df fixed making location closest to goal_score be goal_score 2024-06-10 18:37:26 +02:00
spinerak
a1acff3a8b Comments to docstrings 2024-06-10 18:33:31 +02:00
spinerak
06f105ea57 faster location function 2024-06-10 18:28:09 +02:00
spinerak
5bb2883054 Changed indent of score multiplier 2024-06-10 18:25:53 +02:00
spinerak
d31d6b2d13 Removed plando "fix" 2024-06-10 18:23:11 +02:00
spinerak
7f298e69b8 🐶 2024-06-08 16:11:58 +02:00
spinerak
5188d78534 Changed filling the itempool for efficiency
Now, we start with 17 extra items in the item pool, it's quite likely you need at least 17 items (~80%?).
And then afterwards, we delete items if we overshoot the target of 1000, and add items if we haven't reached an achievable score of 1000 yet. Also, no need to recompute the entire logic when adding points.
2024-06-08 16:10:38 +02:00
spinerak
4e56a07911 RUFF 🐶 2024-06-08 01:59:18 +02:00
spinerak
13340aaf91 Cleaned up the "state_is_a_list" a little bit 2024-06-08 01:55:49 +02:00
Spineraks
2c3a4daa40 Merge branch 'main' into main 2024-06-08 01:40:12 +02:00
spinerak
0d35411aff small comment 2024-06-08 01:38:31 +02:00
spinerak
2d66fd8dd8 styling and capitalization of options 2024-06-08 01:14:39 +02:00
spinerak
99dbcb014f ruff format styling! 2024-06-08 00:57:52 +02:00
spinerak
da820cc165 ruff styling, fix 2024-06-08 00:51:04 +02:00
spinerak
6250923f5e Option groups! 2024-06-08 00:42:45 +02:00
spinerak
25df8e5248 import; worlds not world :) 2024-06-07 23:29:47 +02:00
spinerak
526733dd3d removed roll and rollfragments; not used 2024-06-07 23:25:48 +02:00
spinerak
17402a5740 finished text whichstory option 2024-06-07 23:22:25 +02:00
spinerak
064c92977a Styling 2024-06-07 23:16:16 +02:00
spinerak
3d30b3b8e5 Merge branch 'main' of https://github.com/spinerak/ArchipelagoYachtDice 2024-06-07 22:50:30 +02:00
spinerak
c647c899aa Update Options.py 2024-06-07 22:50:27 +02:00
Spineraks
f6fbf2221f Apply suggestions from code review
Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
2024-06-07 22:43:19 +02:00
Spineraks
78c198b4ea Update worlds/yachtdice/Items.py
Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
2024-06-07 22:35:32 +02:00
Spineraks
7fa48ea5b1 Merge pull request #3 from NewSoupVi/pr/3482
Improve performance of Yacht Dice
2024-06-07 22:25:56 +02:00
NewSoupVi
676e876392 This is actually just slower lol 2024-06-07 22:18:36 +02:00
NewSoupVi
a3c9fb7b55 Improve typing 2024-06-07 22:10:36 +02:00
NewSoupVi
3d7f23b26d newline 2024-06-07 22:02:45 +02:00
NewSoupVi
3e8d89f2e0 Improve performance of Yacht Dice 2024-06-07 21:49:24 +02:00
qwint
b053fee3e5 HK: adds schema to validate plando charm costs (#3471) 2024-06-07 19:12:10 +02:00
Trevor L
8c614865bb Bomb Rush Cyberfunk: Fix missing location (#3475) 2024-06-07 19:11:35 +02:00
spinerak
41cd899abf Added Yacht Dice to the readme in list of games 2024-06-07 19:03:15 +02:00
spinerak
29b8ced72c Add my name to CODEOWNERS 2024-06-07 18:59:06 +02:00
spinerak
1aff595855 Moved setting early items to generate_early 2024-06-07 18:54:56 +02:00