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

Nerlim #1

Merged
merged 11 commits into from
Feb 15, 2024
Merged

Nerlim #1

merged 11 commits into from
Feb 15, 2024

Conversation

LupaDevStudio
Copy link
Owner

@LupaDevStudio LupaDevStudio commented Jan 29, 2024

Add class methods to attribute stars and xp when a level is completed.

…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.
tools/constants.py Outdated Show resolved Hide resolved
tools/linconym.py Outdated Show resolved Hide resolved
tools/linconym.py Outdated Show resolved Hide resolved
tools/linconym.py Outdated Show resolved Hide resolved
tools/linconym.py Outdated Show resolved Hide resolved
tools/linconym.py Show resolved Hide resolved
tools/linconym.py Outdated Show resolved Hide resolved
tools/linconym.py Show resolved Hide resolved
tools/linconym.py Outdated Show resolved Hide resolved
@LupaDevStudio
Copy link
Owner Author

Ah au fait, il manque un ajout important à cette MR ! Il faut que tu mettes ton nom dans les crédits du readme 😉

Copy link
Owner Author

@LupaDevStudio LupaDevStudio left a 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.

tools/linconym.py Outdated Show resolved Hide resolved
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"
Copy link
Owner Author

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.

tools/linconym.py Outdated Show resolved Hide resolved
tools/linconym.py Outdated Show resolved Hide resolved
@Graysdull Graysdull merged commit 509ed74 into main Feb 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants