The quest reward generator is a Java application designed to generate a sequence of quest rewards based on a predefined pattern. The application uses Lagrange interpolation to create sequences for any given number of quests, ensuring that the distribution of rewards closely follows the original pattern.
Generates a sequence of quest rewards (b for bronze chest and s for silver chest) based on a predefined pattern.
Uses Lagrange interpolation to ensure smooth transitions and accurate representation of the predefined pattern for any number of quests.
The predefined pattern for 100 quests is: bbbbbbbbbsbbbbbbbbsbbbsbbbsbbbbsbsbbsbsbbsbbsbsbsbsbssbsbsbsbsbsssbsssbssbssbsssssbssssssbssssssssss
Enter the number of quests: 10
Quest rewards: bbbbbbbbsb
git clone
cd QuestRewardGenerator
javac -d out src/org/example/*.java
java -cp out org.example.Main
Follow the prompt to enter the number of quests. For example, if you enter 100, you will get an output sequence similar to the predefined pattern.