Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve difficulty calculation #128

Open
ryanb opened this issue Dec 7, 2018 · 2 comments
Open

Improve difficulty calculation #128

ryanb opened this issue Dec 7, 2018 · 2 comments

Comments

@ryanb
Copy link
Collaborator

ryanb commented Dec 7, 2018

Currently the "difficulty" calculation is very rough. Here are some ideas to improve it.

  • Item reuse (don't add the hammer complexity on each hit)
  • Rarity of natural resources, add difficulty for rarer items
  • Time it takes (1 hour is much more difficult than 1 minute)
  • Byproducts (if we got an empty bowl earlier, we don't need to craft another one)
  • Quick transitions (ignore 1 second/instant transitions)
@ryanb
Copy link
Collaborator Author

ryanb commented Jan 11, 2019

For item rarity, I. Can calculate the percent that item shows up across all biomes. This will likely be a very small number. I can then take the log10 of this to get a nice number to work with for the difficulty.

Combining items would just add their difficulty together. If a tool is used then only factor in the difficulty based on the % that tool is used up.

Timed transitions could add a slight amount depending on the length of time. Perhaps add 10 difficulty per hour?

I may need to add a constant difficulty for each transition too. Maybe a minimum value. We will see.

@ryanb
Copy link
Collaborator Author

ryanb commented Mar 2, 2019

To determine difficulty we need:

  • a list of natural objects used to craft the item
  • count of transitions involving the player
  • total decay time

We can then calculate the difficulty by estimating the time it takes to find the natural objects, adding a constant (1 second?) for the transition count, and then adding the decay time.

I will need to play around with the decay time to see what amounts best represent difficulty. Something that sits for an hour is not necessarily difficult.

Determining the natural objects is the hardest part because we need to consider consumed and leftover objects from both sides when applying a transition.

This will allow us to see if the overlapping objects from one side were a consumed object on the other. In that case we can delete that objects natural objects and transition count.

The number of uses remaining also need to be tracked on leftover objects to determine if we have enough to satisfy the consumed object.

The decay time should be the max decay time from the two objects in the transition.

Some questions:

  • should repeated natural objects be more difficult? It is harder to find repeating objects because they become further away.
  • should the number of natural objects be a factor? Since you can only carry a limited amount back to base.
  • should the number of biomes raise difficulty? Looking for 10 objects in all biomes would be more challenging than in one biome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant