r/learnpython • u/AlSweigart Author of "Automate the Boring Stuff" • May 27 '19
"Automate the Boring Stuff" author is live streaming Python programming on Monday evening 5/27, 6pm Pacific
Hi Reddit! I'll be live streaming myself working on a few different text-based games in Python on Monday, 5/27 at 6pm Pacific:
https://www.twitch.tv/alsweigart/
I'm creating a collection of short, complete, text-based Python games. The idea is to create several examples for beginner/intermediate programmers to look at to see how programming concepts come together into a complete program (while still being small enough to understand). The current collection is on GitHub at: https://github.com/asweigart/PythonStdioGames/tree/master/src/
14
u/Calierio May 27 '19
Thanks for streaming, Al! I'm an Oaklamd teacher learning python to help support our school's merger, where we'll be doubling the student population.
Automate the boring stuff helped me write scripts to automate hours to minutes. I'm so grateful.
Thankful for your streams, hearing an experienced programmer articulate problem solving helps me immensely.
Keep it going, would love to buy you a beer sometime for all your efforts.
6
u/sharkgantua May 27 '19
Nice! I've bought a lot of your books off Humble Bundle programming book sales but haven't dove in yet. Do you recommend a good order to read your books in?
5
5
4
u/JayDude132 May 27 '19
Your books are great! I have been reading both Automate the Boring Stuff and Invent Your Own Computer Games with Python 3rd Edition.
A friend and I have recently been interested in creating a text-based zombie game (similar gameplay to Zork) but I dont know how to keep track of where my character is on a map.
I hope i get the chance to check out your stream tomorrow!
5
u/ThePotterP May 27 '19
You could use a list to keep track of coordinates which you could then use to show the journey taken. Just something like:
Last_coords = [(0,0), (0,1)] to get the last position you’d do last_coords[:-1], the first would be last_coords[0], and to get the entire journey you’d just iterate through the list. You’d just add the new coordinates every time your player takes a “step”. Can also use a dictionary if you’ve made certain areas i.e locations = {“woods”: (0, 0), “forest”: (0, 1)} and whenever your player enters that area just set a variable called player_location to locations[“woods”]. Hope this helps!
1
u/JayDude132 May 27 '19
Thanks! I have been thinking about using lists or dictionaries in some way but wasnt quite sure how. That makes sense though, thanks for the help.
3
3
2
u/luger718 May 27 '19
Awesome! I caught the last stream and was working on the book today!
Just worked out the mad libs project in chapter 8. Ended up needing help from the internet but learned a lot and made what I found better/more concise.
2
1
u/w38d3v310p3r May 27 '19
RemindMe! 19hours automations!!
1
u/RemindMeBot May 27 '19
I will be messaging you on 2019-05-27 22:27:01 UTC to remind you of this link.
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
FAQs Custom Your Reminders Feedback Code Browser Extensions
1
1
1
u/thatisreddiculous May 27 '19
Any chance there will be recordings available? Big fan but living in Asia and the time difference means I’ll be at work :(
1
u/Bumblingbeginner May 27 '19
It would be great if it’s recorded! A little too late at night for us Europeans.
1
1
1
1
May 27 '19
I shared this on my Linkedin because I think many of my friends will like to attend. If that is ok. I'm working but next time.
1
u/biogenmom May 27 '19
So exciting! I've been meaning to work my way through "Automate the Boring Stuff" for ages now and have finally started! It's going well so far, I find that your explanation of concepts paired with entering text in the shell and writing code has really helped me learn.
1
May 28 '19
Did I miss my chance to see this stream? Is it recorded somewhere? Unfortunately I wasn’t able to make it and I’m very interested in seeing this.
1
35
u/thesquarerootof1 May 27 '19
Nice! I love your books by the way. I have recently aquaired a job at a Fortune 500 company writing scripts to automate internetworking tests (for routers, switches, flash memory for online storage, etc). Any advice or tips on advice is appreciated on that. It is niche so I don't expect you to fully know it but it's automating pretty much.