This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Ririio
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.
This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Ririio
Ririio | Sciencx (2022-12-02T01:06:41+00:00) Progress with feature implementation. Retrieved from https://www.scien.cx/2022/12/02/progress-with-feature-implementation/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.