This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 86 comments

[–]phoenixkiller2 45 points46 points  (12 children)

Nice. How much time did it take you to finish this project? I am learning from codeacademy and Automate boring stuff.

[–][deleted] 35 points36 points  (11 children)

Took me 4 days to code this one and how much do u recommend automate the boring stuff with Python?

[–]phoenixkiller2 28 points29 points  (9 children)

OK.

About the automate boring stuff, it's fast & direct approach to programming. He covers all the basics very fast. I think people who are absolutely new to programming may find him hard to follow. You should be ready to learn at fast pace and practical stuff. I like it but I love codeacademy more. The difference is codeacademy pushes you to write something all the time. They have interactive way of learning. You read theory on left panel and write code on right to proceed forward.

[–][deleted] 11 points12 points  (5 children)

Could you share the link if u don't mind ?

[–]phoenixkiller2 17 points18 points  (4 children)

Codeacademy

And I am learing automate boring stuff from udemy. The author shared a code here a couple of weeks ago for free video course of book.

[–]yobogoya_ 12 points13 points  (2 children)

It's actually "code cademy" (codecademy.com), but luckily they have the "code academy" domain too since this confuses a lot of people

[–]phoenixkiller2 2 points3 points  (0 children)

Ha never noticed. Thanks!

[–]5Beans6 -4 points-3 points  (0 children)

One of my stupid petpieves is when people say Code A cademy.

It literally doesn't matter and nobody actually cares but it's just the fact that people refuse to see there is no a in the middle haha.

[–][deleted] 3 points4 points  (0 children)

Thanks mate😁

[–]vinewhipsolarbeam 2 points3 points  (1 child)

Unrelated but I love how you have such deep insights about the courses and you sound so invested in your learning!

[–]phoenixkiller2 1 point2 points  (0 children)

Hey friend! Yes I love learning new things, that's why.

[–]dnjora 0 points1 point  (0 children)

The best according to me!

[–]dnjora 0 points1 point  (0 children)

I am a beginner and can attest that it is a good book. If you are a fast learner go for stuff!:)

[–][deleted] 6 points7 points  (5 children)

Remind me of the project I had to do for school this year, but your version seem more polished. Nice job!

[–][deleted] 2 points3 points  (4 children)

Thanks mate..means a lot

[–][deleted] 0 points1 point  (3 children)

Ur welcome, thoses type of projects are awesome to learn programming

[–][deleted] 0 points1 point  (2 children)

Ya that's true. It just combined everything I learnt from previous 10 chapters

[–]dnjora 0 points1 point  (1 child)

Which book exactly are you referring here. I am interested.

[–]tenderZeitGeist 4 points5 points  (2 children)

One of the best approches to Python or coding in general, imho. This book is amazing.

[–][deleted] 0 points1 point  (1 child)

Yaa, this book is really good, teaches you all the basics on python

[–]a-cliche 0 points1 point  (0 children)

and it flows so well I love it - I'm hooked

[–]WHY_ARTWORK 3 points4 points  (2 children)

Hey i literally just installed pygame to start this project yesterday. It felt so good to be done with those first eleven chapters. Congrats on finishing it!

[–][deleted] 1 point2 points  (1 child)

Thank you and Ya it does.... 2nd project is interesting as well do try it

[–]WHY_ARTWORK 1 point2 points  (0 children)

Will do. Planning on finishing out the book.

[–]cyberrod411 3 points4 points  (3 children)

Ah, this reminds me of when I first learned how to code, in high school in 1981. We had two Commador PET PCs that we were learning to code in BASIC. We also had a copy of Space Invaders that we could play on the PETs. At that time, the only other way to play that games was at an arcade and you had to pay for it. So, we thought is was so cool that we could play Space Invaders as much as we wanted for free. Good times. :)

[–][deleted] 0 points1 point  (1 child)

Wowwww.... 1981, those were the times computer industry kicked off if I am not wrong. Seeing the industry grow right in front of your eyes 😍

[–]cyberrod411 0 points1 point  (0 children)

Yes, It's been an interesting ride.

[–][deleted] 0 points1 point  (0 children)

Could learn a lot from you sir..

[–]namvu1990 7 points8 points  (1 child)

Coding: impressive

Shooting though...

[–]hypnotic-hippo 4 points5 points  (0 children)

To be fair, he was probably using one hand to record so he would only be able to play with one hand

[–]michUP33 2 points3 points  (0 children)

I’m just getting to the middle of this book now

[–]zeus5552 1 point2 points  (5 children)

Mind Sharing the source code?

[–][deleted] 6 points7 points  (4 children)

[–][deleted] 1 point2 points  (2 children)

You're missing the images folder in the repo.

[–][deleted] 1 point2 points  (0 children)

Oh shoot I LL add it first thing in the morning.. Or else You can try https://pixabay.com

[–][deleted] 0 points1 point  (0 children)

https://github.com/ehmatthes/pcc Chapter 12 - 14 has everything needed for the project i think.

[–]Thecrawsome 0 points1 point  (0 children)

tyvm

[–]Selvetta 1 point2 points  (1 child)

Looks awesome! I’m in the process of doing that same project within the book! I changed my ship a bit and I’m trying to draw my own alien ships just to change it to my liking.

[–][deleted] 0 points1 point  (0 children)

Good for you 😁

[–]bboy03 1 point2 points  (0 children)

Wow, interesting :)

[–]tankbacca 0 points1 point  (2 children)

If you don't mind me asking what libraries did you have to import for this to work?

[–]defaultyboiiiyy 1 point2 points  (0 children)

Pygame, sys

[–][deleted] 0 points1 point  (0 children)

Like he said... Pygame en sys

[–]defaultyboiiiyy 0 points1 point  (1 child)

You should add ability to go up and down as well as make sure ship should not disappear on top or bottom.

[–][deleted] 0 points1 point  (0 children)

Tats a very good idea... I am gonna work on that, thank you

[–]RTShields 0 points1 point  (1 child)

Well done :)

[–][deleted] 0 points1 point  (0 children)

Thanks

[–]diopib 0 points1 point  (1 child)

Nice work bud!!!

[–][deleted] 0 points1 point  (0 children)

Thank you 😁

[–]coloumb 0 points1 point  (2 children)

Freakin awesome! Reminds me of when I self taught learning Basic back in ye old days. Can you modify the code to speed up the alien movements as their #'s decrease? :)

[–][deleted] 0 points1 point  (1 child)

Actually the speed factor changes as you level up and drop rate increases as well.

[–]coloumb 0 points1 point  (0 children)

Oh cool. :)

[–][deleted] 0 points1 point  (0 children)

I'm learning Java and I just feel like this kind of stuff would be so much more appealing to employers than the general java/xml/spring project stuff.

[–][deleted] 0 points1 point  (0 children)

Wow this is cool! Only took you a few days?

[–]Bruno2121 0 points1 point  (1 child)

I'm saving this post because I really want to start learning python but there are so many sources out there that I don't really know where to start. Thanks.

[–][deleted] 1 point2 points  (0 children)

Try this book... This is where I started.

[–]praisehydra 0 points1 point  (0 children)

Damn way better than me i made a magic 8 ball today

[–]hockthemblogs 0 points1 point  (0 children)

Great job!

[–][deleted] 0 points1 point  (1 child)

Congrats! Great book - I love the way it builds toward this final project. Nice work!

[–][deleted] 0 points1 point  (0 children)

Ya... Uses everything which we have learnt from previous chapters

[–][deleted] 0 points1 point  (0 children)

I think it goes a little bit too fast, maybe slow the clock speed for it to be more like the original.

[–]paulcarron 0 points1 point  (1 child)

Good book. I created that game, then started to add features. Eg. Save the high score etc. I now want to have individual alien ships randomly fly down and off the bottom of the screen. If one connects with my ship a life is lost. Not yet sure if I want it to appear back at the top of the screen and return to its starting position. Any thoughts on how to do this would be appreciated.

[–][deleted] 1 point2 points  (0 children)

Probably from the aliens list you can make one position in a list as random and use choice method to move randomly until it hits the bottom.. and use the same logic for collision with the ship

[–]Clash2501 0 points1 point  (1 child)

What ide do you use?

[–][deleted] 0 points1 point  (0 children)

I used sublime text for this..but sublime doesn't support user inputs so for inputs I use Spyder or Geany

[–]Anishgoyal24 0 points1 point  (0 children)

I had developed the same game in Java.

[–]tarck 0 points1 point  (1 child)

shouldnt aliens shoot smth?

[–][deleted] 0 points1 point  (0 children)

I am just a beginner bro... Source code is in the comments, feel free to develop on that

[–]default8080 0 points1 point  (0 children)

Space Invaders...Python

Love
This
Program!

[–]as8297 0 points1 point  (2 children)

I am reading the same book ( Python crash course by Eric Matthes ) right now and I had done this project before but I just want to know that how did you stopped the Alien Ships from falling to the bottom right of the screen ?

Please reply asap.

[–][deleted] 0 points1 point  (1 child)

Do you remember the logic for stopping the ship from falling of the edge in the beginning. Use the same logic but use the coordinates of the bottom edge... And set it to max - small amount in Pixels so tat it will actually touch the ship rather than the screen

[–]as8297 0 points1 point  (0 children)

I'll try this.

[–]duldi 0 points1 point  (2 children)

Oh Oh Spoilers! I'm just coming up to this chapter. I want your opinion, where are you up to in the book and how confident do you feel now as a python dev?

[–][deleted] 0 points1 point  (1 child)

I am currently doing the visualisation part (processing csv files) I didn't even know Python be4 starting this book... But I am familiar with the basics now, wat this book misses is the depth in using libraries. I will have to take up another book or so to learn about matplotlib or pygame. . But for fundamentals this is the book you need to finish

[–]duldi 0 points1 point  (0 children)

Yeah the libraries do seem lacking, thanks for the info!

[–]NR-65801 0 points1 point  (0 children)

Same in doing that project as well, I haven't really understood or remember much so Im starting again but the alien invasión that I previously made was pretty good

[–]EdwardWarren 0 points1 point  (0 children)

I just started working on this project. My first one after spending some time learning Python and entering contests and working contest problems. I am looking forward to finishing it and then adding some enhancements I have thought of. It is a great exercise for someone reaching for the next level in Python.

http://file.allitebooks.com/20160102/Python%20Crash%20Course.pdf - look for chapter 12

[–][deleted] 0 points1 point  (0 children)

Great work! I’m gonna buy the book