-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nerlim #1
Conversation
…forming loops with words. Cleaned a few type hints.
… method to Game class to award stars and xp to the user when the level is finished.
Ah au fait, il manque un ajout important à cette MR ! Il faut que tu mettes ton nom dans les crédits du readme 😉 |
…_and_new_in_path).
…ls to check that the act and level have save data before awarding stars and xp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super pour les modifications sur le nombre d'étoiles et de xp ! Je vais juste faire un commit pour corriger un bug lié au changement du format de la position et modifier légèrement le calcul des étoiles pour se baser sur le premier dictionnaire qui rend le chemin possible.
USER_DATA.classic_mode[self.act_name][self.lvl_name][NB_WORDS_KEY] = nb_words_found | ||
previous_xp_fraction: float = nb_words_previous_best / nb_words_300k | ||
# save quest word | ||
QUEST_WORD_KEY: str = "quest_word_done" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il faudra ajouter ce fameux quest word dans le json contenant les données des levels.
…rted building ClassicGame subclass of Game class and cleaned up award_stars_xp method.
Add class methods to attribute stars and xp when a level is completed.