Learn Python by making a text-based adventure game write-up (22nd July)

👉 Related to event: Learn Python by making a text-based game

Thanks to everyone who came along. A big thanks to Adverts.ie for hosting and for Ursula and Mick for helping out.

We had a projector this time (thanks, Ursula). First thing first (after shuffling around furnishings to have people set up so they can see the projection), make sure everyone is set up and have the Python files we will be stepping through during the workshop. We've learnt that it would be easier for everyone to have PyCharm IDE installed, Sublime Editor is nice, but a little figety to set up.

You can download the Python workshop files here.

We first went through the QuickStart Guide to CLI and Python to get people comfortable in command line and running Python via the console.

XKCD - Python

We also mentioned some style guidelines like 4 spaces when indenting. Check out PEP-8 for more information on Python programming style guidelines.

After the quickstart we went through the Python scripts, which are over-commented, but useful guide as we built up the text-based game from starting off asking your name to bringing the player through options of picking doors to unknown rooms and encountering things dead or alive. Concepts like writing functions, declaring variables, if, for and while loops are introduced as well as some basic data types (numbers, strings, lists and booleans).

If people have questions with anything in relation to the workshop and its content, you can join the Coding Grace forum and we (as well as others on the forum) would be happy to help.

If you have a workshop that you want us to run, please email contact@codinggrace.com.

Upcoming events

Introduction to Ruby on Rails

More details: http://www.codinggrace.com/events/introduction-ruby-rails/25/

Data Analysis with Python

More details: http://www.codinggrace.com/events/data-analysis-python/27/

Learn Python by making a text-based game @ CultureTECH

More details: RSVP via CultureTECH site

Workshops coming soon

Other events

References

About Author

Vicky Twomey-Lee

Pythonista, but normally found organising various tech events, and now heavily involved in diversity initiatives like Coding Grace, PyLadies Dublin, and Women in Technology and Science (WITS Ireland).
👉 http://about.me/whykay

💖 Our Sponsor/Partner(s)

A huge thanks to following sponsor(s). If you like to support us, get in touch with us.

fourTheorem
Get involved

Interested? Talk to us.

Dublin City  Council PPN

Partner