I am making a console maths test that asks a few random addition, subtraction, multiplication, division, power and square-root questions based on the difficulty level the user chooses.
I am trying to make my code more advanced by automatically setting the difficulty to the harder level or easier level the next time he runs the code depending on what score he got the last time he did the test. For example, if he chose the Normal level and gets a score of 1/10, the next time he runs the code he should automatically be doing the easy level.
I thought "environment variables" is something to look into to save state but it does not look anyone have tried to do so. It very well could be I'm starting very wrong route with environment variables.