0

I have issues with reasoning / logic; how to find solution to a problem with due steps from the beginning. Any help?

25th Jan 2022, 8:28 PM
𝑹𝒍𝒗𝒊𝒏
𝑹𝒍𝒗𝒊𝒏 - avatar
2 RĂ©ponses
+ 7
Write out the steps in English (or your mother tongue). Then convert each step into a line of code. If a step can't be accomplish in a single line of code, simplify what you have written so it can be.
25th Jan 2022, 8:41 PM
Paul K Sadler
Paul K Sadler - avatar
+ 2
You could try starting with the whole problem then breaking it down into smaller sections then breaking those sections down even further until it's easy to see what needs to be done. Sometimes that works better than trying to start from the smaller details. For example, in a pacman-style game, you've got the player's character, the enemies and the level layout. Then you can break the player's character down further into coding which buttons move which directions, what happens when an enemy touches them etc.
27th Jan 2022, 5:06 PM
Katherine P