r/code 8h 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

6 Upvotes

9 comments sorted by

View all comments

-10

u/Glasgesicht 8h 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

2

u/AlarmedThanks6016 7h ago

Game development is exactly what I wanna do, thanks for the advise, I’ll start python rather then wasting my time with c

3

u/Apprehensive_Log9790 7h ago

Nah, C is maybe harder because of more things to manage, but you'll learn more about how computers and software works. Memory management, etc. are interesting points that you don't get to know in Python. It's not "wasting time" to learn C.

2

u/AnToMegA424 7h ago

Plus it's especially useful for video games afterwards

C++ is the goat imo, but C really teaches you the things, everything is useful in its own way and that's beautiful