-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement ability to complete challenge multiple times at once. To do it, I split everything in checking/removing/rewarding steps. In checking step, it calculates if it is possible to complete with minimal requirements and then calculates maximal repeating factor. In removing step, it removes everything that is necessary. In rewarding step, it give rewards by necessary factor (multilayer). I rework item/block/entity removing as factors may be influenced at the last element, so I improve everything by memory usage. Create necessary sets/lists/queues for faster access to already collected items.
- Loading branch information
Showing
5 changed files
with
536 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.