Skip to content

New feature: implementation of experience_utils.cairo#130

Merged
coxmars merged 2 commits intoAkatsukiLabs:mainfrom
Jayse007:feat/experience_utils
Jun 6, 2025
Merged

New feature: implementation of experience_utils.cairo#130
coxmars merged 2 commits intoAkatsukiLabs:mainfrom
Jayse007:feat/experience_utils

Conversation

@Jayse007
Copy link
Contributor

@Jayse007 Jayse007 commented Jun 4, 2025

Pull Request Overview

Trait added:
ExperienceCalculator

Impl added:
ExperienceCalculatorImpl

Functions added:
-calculate_exp_needed_for_level(level: u8) -> u16
-should_level_up(current_level: u8, current_exp: u16) -> bool
-remaining_exp_after_level_up(current_level: u8, current_exp: u16) -> u16

Tests Coverage:
Unit Tests: Tests were written for levels (1, 2, 5, 10, 20) as specified in task description. Tests were written for all the functions listed above taking different scenarios into consideration. All the tests passed, proving that the code is working as expected.

@coxmars coxmars merged commit 72dee1e into AkatsukiLabs:main Jun 6, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants

Comments