DEV Community

Shahin Sheikh
Shahin Sheikh

Posted on

How I deployed my first project for my devops portfolio: The Project

About the project

This project that I made is just a simple task completion, where you insert a task and rate its importance (S,A,B,C,D,E) and based on its importance you will get rewarded with suitable XP as the task gets completed.

Simple working of the project

Project SoloLeveling is the landing page where you will be greeted with name, dob for new player and LoadGame for existing player.

As the new player inserts their name and DOB, a ID is created and must be saved.

As an existing player we greeted with a new page as we hit the LoadGame.

--> To check the XP of the player: At the end of page there is Player name filed and an ID field. Insert your name and the ID got during creation and submit. You will get the current player XP and Level.

--> To add new task: Enter the task under New task and then select the importance from drop down menu beside it. Then again at the bottom Player Name and ID needs to be entered before submit to save it in the database.

--> To complete a task: Your created tasks will be shown at the very top with the id of the task. Insert the task id which is completed in the field below the New Task section and yes again with player name and ID before submitting the task.

XP calculation and importance

First with importance: Below are the importance characters and its corresponding value I decided on.

  • ('S', 10)
  • ('A', 8)
  • ('B', 6)
  • ('C', 4)
  • ('D', 2)
  • ('E', 1)

XP calculation: On task completion, based on the importance value I settled on a simple formula.

XP GAINED = (reward * current XP) / 100

For leveling up as in games an xp needed to be filled. So behind that I have made another simple formula.

XP REQUIRED += (30 * required XP) / 100 + 8

FAQ

Question: xp gained = (reward * current xp) / 100. New player has 0 XP so anything x 0 is 0, so why that?
Answer: When new players signs up, the player gets an xp for that, hence every new player starts with 3.48 XP.

Top comments (0)