Compared to the previous C++ script, I could improve readability by modulizing the function that calls the card information.
This is the picture of the callTheCardInfos function. There are problems with this code, first of all, it is hard to read, and if there were any updates with card information, it would be hard to make changes. By performing the modulization of this code, I could solve both of the problems.
It took extra work to find the logic to handle this issue, but in the future, when it comes to expanding or updating this code, it pays off.
Compared to the previous C++ script, I could improve readability by modulizing the function that calls the card information.
This is the picture of the callTheCardInfos function. There are problems with this code, first of all, it is hard to read, and if there were any updates with card information, it would be hard to make changes. By performing the modulization of this code, I could solve both of the problems.
It took extra work to find the logic to handle this issue, but in the future, when it comes to expanding or updating this code, it pays off.