Assuming a player knows the rules, are there any free, one-player simulations that will rapidly teach a single player on their own how to move beyond opening with nonsense moves.
The concept that caused me to stop making nonsense moves is control the center.
That meant moving out the d and e pawns, possibly with the c and f pawns, either abreast, or in support. More likely, I'd move a knight to c3 or f3 (c6 or f6 if Black), then a bishop or two. Castle as soon as possible, before undertaking activities on the wings.
That eliminated a lot of bad opening moves like
g3, and worse,
In the area of openings, I don't think a one-player simulation will serve you as well as a good read. For a start, I would suggest the Wikibook Chess Opening Theory, perhaps after reading the more basic version.
Of course, experience playing with others will strengthen your opening a good deal, once you have the principles down.
I'd be careful of the word 'nonsense' since it means different things to different people. Kasparov would consider nonsense things that you or I would consider totally groovy.
I think a player can learn the main lines of a few openings and learn the basic principles behind those moves (occupy the center, develop pieces...) in not too much time.
How long before you can find the correct response to the 10th move of a sharp variation of the Ruy Lopez? Perhaps a bit longer.
Pick ONE opening and specialise in it. Do not worry about any other openings. For black that is a bit harder but you can find sound defenses to limit how much you need to know.
Play over GM games with that opening. Play every one you can find. Be totally familiar with all the usual variations and how the middle games turned out.