This is my strategy whenever I learn a new language. Start easy, escalate in complexity.
print to the command line
take input from the command line
dumb blackjack game
dumb blackjack game and store session results
Make a fugly UI but keep the operations text
Make a fugly UI and add basic graphics
Etc.
The basic game itself doesnt matter - make it hangman if you want. The idea is to get used to a language.
Keep doing that sort of thing, experimenting and learning, find ways to break things, find weird ways to solve problems, figure out ways to write even less lines of code. Find elements that you can make a function instead. Sanitize inputs excessively. Whatever.
Play around, and keep playing around. You’ll learn in no time.
For the record, this is how I learn, by doing. I have a really hard time sticking to tutorials, and I find examples far more helpful than a manual entry explanation of what something does. YMMV.
This is my strategy whenever I learn a new language. Start easy, escalate in complexity.
Etc.
The basic game itself doesnt matter - make it hangman if you want. The idea is to get used to a language.
Keep doing that sort of thing, experimenting and learning, find ways to break things, find weird ways to solve problems, figure out ways to write even less lines of code. Find elements that you can make a function instead. Sanitize inputs excessively. Whatever.
Play around, and keep playing around. You’ll learn in no time.
For the record, this is how I learn, by doing. I have a really hard time sticking to tutorials, and I find examples far more helpful than a manual entry explanation of what something does. YMMV.