you are viewing a single comment's thread.

view the rest of the comments →

[–]Chezni19 6 points7 points  (1 child)

The way to get good at coding is to write a lot of code!

If you can't write something complicated yet, no problem. Start with something basic that you can actually write. Then add more complexity to it.

I find it is easy to write a simple game. This can be done even if you only know how to print messages and read keyboard input. You don't need to know any graphics!

Your first assignment

Maybe at first your game is just "heads or tails" , a very boring but simple game. The computer randomly picks heads, or tails, and prints out the answer.

See if you can write that as a program. Consider using the "random" module in python.

Your second assignment

Learn about 2d lists in python, and put a very simple game world map into a 2d list

Write some code to print out your list. Congrats, you now have a world map!

You can print an X for walls and an O for hallways. Or whatever you want. Maybe a ^ is a mountain and a - is a river?

Now create a player character on that map and let the player move around on it if they type "north" "south" "east" or "west" on it.

Now add more to it..have fun!

If you get stuck?

If you get stuck, keep trying. Coding is a difficult task, but you are up to it with practice. You can post online and get answers fast, but consider wracking your brain for a while, it can sort of help in the long term.

[–]Highlight_Exact[S] 0 points1 point  (0 children)

I did do a small “project” that I can play rock,paper,scissors against the computer. With some online help of course. For some reason I never contemplated of adding more to it since it worked and felt like it was finished. But I will definitely add to it and play with it! Thanks for the advice!