r/learnpython • • Jun 09 '20

Github as a beginner

As a beginner learning python, is it too early to create and start coding simple projects on Github. and how do I transfer these codes (simple calculators) to a website I build subsequently?

401 Upvotes

111 comments sorted by

View all comments

Show parent comments

16

u/CaptSprinkls Jun 09 '20

I have been off and on learning programming ever since I graduated college. About 2 years ago I sat down and decided to learn C++. My first application was a tic tac toe game. I shit you not, it was 1000 lines of code.

Sad times....

5

u/GreymanGroup Jun 10 '20

Damn son. How is that even possible?

6

u/CaptSprinkls Jun 10 '20

So I took a closer look at it..... It's even worse than I thought.

It's meant to be played with two real players, and it alternates between player 1 and player 2. When it's player 1 turn, I ask what position they want to play and then after every one of the 9 possible choices, I check all 8 possible win conditions. And then I do this all over again for Everytime player 2 moves

1

u/[deleted] Jun 11 '20

did you not know what functions were at this time lmfao, please post the code

1

u/CaptSprinkls Jun 11 '20

I honestly can't remember lol. Like I said it was 2 years ago, so I probably knew OF functions, but had no clue how to implement them at that point lol.