DEV Community

Ririio
Ririio

Posted on

Progress with feature implementation

With the second week coming to an end, I managed to send a pull request regarding the first task that I planned for my issue. With this, the first implementation of adding "difficulty", has come to an end. I will have to focus all of my remaining time with the addition of the "mode" functionality.

First Pull Request

The first pull request in regards to my issue contained a difficulty mode. The issue I had with my new added feature are the multiple variables that will be affected by it. The first issue I came across with is that, each time the difficulty is changed, it will not affect the current state of numbers. This issue is caused by the AppState only updating its value after it is used, which can lead to a delay. This was fixed by using the parameter value as to the current state.

Next Feature

When all of the issues were resolved, and the code was updated to do its intended function, I'm now moving on to the next phase, which is to add a new "mode" functionality, which will change the current state of the game from a standard operation to a "decimal". Later on, if I'm able to implement it, I will implement a "factorial" mode which will change the overall structure of the game, but this is only if I have enought time in my hand to finish it before the deadline.

Top comments (0)