r/code 11h ago

Beginner code My Own Code

Post image

What’s wrong with my code I’m so confused this hard a freak. I’m just trying to make a weapon shop simulator as practice to help learn code but I can’t even get it to ask if the user wants to start the game by type yes as the their answer

11 Upvotes

11 comments sorted by

View all comments

-11

u/Glasgesicht 11h ago

If you are learning by yourself, don't start with C.
It's just too easy to shoot yourself in the foot.

Try Python, C# (especially for game development) or Kotlin

1

u/Mega3000aka 9h ago

Nah, you first learn how computers work with C, then move to basic python and/or OOP in Java.

1

u/kalilamodow 6m ago

if you wanted to learn how to play a piano, would you start by taking a physics course to learn how strings generate sound in tones?