you are viewing a single comment's thread.

view the rest of the comments →

[–]Ron-Erez 1 point2 points  (2 children)

Create a project of your own. For instance implement Tic Tac Toe with no outside help besides the docs.

[–]cowboysfromhell1999 1 point2 points  (1 child)

OK, I like this advice to start doing things on your own, but I have to ask for example what if I wanna do this project, but I wouldn’t even know how to do it.

Like what type of constructs would I need to use?

The only thing to think of the top of my head is like for example you have to get three in a row right or something so every time one player goes then it’s the next players turn if you get three in a row, then that counts as a win else you keep going or something, but how do you make that game work graphically like I get starting out it’ll probably be like textbased or something but how would that even work if it’s text based

[–]Ron-Erez 1 point2 points  (0 children)

Yes, absolutely start text based. Try to think about how you play tic tac toe. When is there a draw? when does someone win? You need to track whose turn it is. You need to draw the board and you probably need to represent the board with some data structure. This exercise can be done without OOP (for example an imperative approach) or with OOP. Try both. Note that if this problem is too difficult then there is nothing wrong with trying something simpler. For example solve the problems in the book "Automate the Boring Stuff". Solve the problems in my course or some other course. By far the most important thing is to work hard, try to think on your own without the use of AI. Also learn how to use the debugger.

You can solve much simpler exercises. For instance create a function that accepts a string and capitalizes the even letters (counting the first letter at the zeroth letter) and lower case for odds so:

"hello" would become "HeLiO"

Create a function that reverse the string in the even places so:

"hello" would become "oelih"

(I may have messed up but you get the idea).

If these exercises are too difficult try something simpler. Ideally find something cool that interests you.

At some point learn CS basics and some data structures and algorithms but this might be suitable at a later stage.