In programming (as in many other activities) it is very difficult to define the concept of “right”. Here it is more like “works” or “does not work”.
To write a program (to explain to the computer what needs to be done), you first need to make step-by-step instructions that are understandable to you given programming language limitations in “choice of phrases”.
You can tell a person “sell the items from the counter”, but for a computer you need to make MORE detailed instructions, because for it there are only numbers and names of numbers (to simplify greatly).
For a computer, the instructions look like this:
- Take the list of items on the counter
- Go through each name of item in the list
- Take the catalog of items
- Find the price of one item “with that name”
- Find how many items “with that name” are on the counter
- Find how much all the items “with that name” that are on the counter will cost
- Add this to the total cost of goods on the counter
- When the list is finished, remove the items from the counter
- Pay for the items
- Draw what is on the counter now
You need to learn to break down a complex task like “make a game” into many smaller ones until it becomes understandable to the computer.
To do this, you need to watch the training lessons on the engine to understand what level of tasks it can solve, so that knowing this you know to what level you need to break down your tasks so that they become feasible.
You need to learn how to write such instructions first. Without this skill, there will be no progress.