r/learnpython • • Jun 18 '20

Python projects for beginners

Hi! I just learned basic python syntax (watched a 4 hour long python tutorial playlist while also doing it myself), what would be some good beginner projects/ programs that i’d be able to make, and second of all, what can i learn next to become better at python?

449 Upvotes

108 comments sorted by

View all comments

Show parent comments

2

u/Poddster Jun 19 '20

The steps I showed were the logic behind what's supposed to happen when someone clicks a spot. You make a matrix and using the logic from from tic tac toe, you search surrounding titles for bombs and place the number as the player plays.

In which case your logic is incorrect.

 . . .
 . x B
 . . .

If you click the "x" square your code would show 7 but the answer is 1.

If Minesweeper is so easy how could you get that simple thing wrong?

1

u/OnlySeesLastSentence Jun 19 '20

Fair enough. I'd have caught that error (as well as noting that corners and walls are supposed to have fewer bombs) immediately upon actually trying because I'd have done a print(location.bombCount) immediately.

2

u/Poddster Jun 19 '20

So what you're saying is that making minesweeper would have been a good way to practice your python skills and make you a better python developer? ;)

Seems like it was a good choice after all!

0

u/OnlySeesLastSentence Jun 19 '20

I was just saying that it's not really much more challenging than tic tac toe is all. If you can program tic tac toe, I believe you can program minesweeper.

It sounded like you (or the original suggester if it wasn't you) was making it sound like minesweeper was a huge step up.

By the same logic, I'd say connect4 and tic tac toe are about the same difficulty; connect4 just has the added difficulty of needing 5 lines of code to add gravity.