Create your own Classic Text Adventure with Python

Thanks to some awesome suggestions from a few pioneering users, Trinket now supports neat text adventures.

Using our new add files feature Brian introduced a few days ago, a group of parents and teachers from SF Brightworks have made a text adventure game module that students can use to make their own classic adventure games:

Their code is in adventure.py and is imported, so it stays out of the way and students can focus on building the rooms and items in the game.

These games may be simple, but they’re a critical part of getting comfortable with text-based programming.  Many of today’s most famous programmers started out building simple text-based games, and classics like Zork and ADVENT inspired a whole generation of programmers to use computers for creative pursuits.

Using the Trinket above, see if you can alter the text of the existing locations.  Look for how the connections between locations are created and see if you can add another yourself!  Find the line where the ‘key’ is added and duplicate it to add another item in the same space.  Then press Run to see your changes updated in the game.

The coolest part of working at Trinket is seeing what creative things users are doing with code. Got an awesome project?  Get in touch.  If you’d like to help this adventure crew build their module for students, check out their github project and consider contributing!

Add Files to your Python Trinkets

We are very excited to announce a new feature that allows you to add files to your Python trinkets. Many users have additional modules they’ve written to import, data files they would like to read in and manipulate, and other types of files that make really powerful programs. Before today you would need to copy and paste the contents of those files into your trinket and use them directly. Today that’s all changed with a new tab interface that lets you create new files and separate out your main program from other content.

Continue reading

Announcing Trinket’s Doughnuts-for-Bugs Program

Trinket users rely on our service to code every day, and we’re committed to 100% reliability.  Today we’re announcing our Doughnuts-for-Bugs program to reward users who spot critical Trinket bugs.  We’re also announcing the inaugural co-recipients, Gever Tully’s SF Brightworks Students (collectively) and Danny Bradbury of Kids Tech News.  Gever’s students and Danny gave us detailed bug reports and helped us diagnose a bad bug back in December.  Details on the bug are below but first, let’s see what our first winners got!

SF Brightworks isn’t your typical school.

Our First Doughnuts For Bugs Winners

 Gever Tully’s SF Brightworks Students

  • Doughnuts from Krispy Kreme delivered on 12/12 (Don’t worry: we brought enough for the whole school!)
  • (Optional) A visit or Skype call from our developers to talk about software development, the bug, or get hands-on with Python!

Danny Bradbury

  • Doughnuts from Krispy Kreme in Vancouver (or doughnut shop of his choice)

Continue reading

Top 10 educator interviews from Trinket’s first year

One of the best parts of my job is talking to our awesome users.  We’ve been fortunate that many of them have given interviews explaining how they teach with code.  This interview series, available here on our blog, has been extremely popular as readers are able to get a better idea of how others are incorporating code into their teaching.

Below are the top 10 interviews from 2014.  Enjoy, and stay tuned for more great posts and interviews in 2015!  Want more great content?  See our top 10 blog posts from 2014.

#1 – How Brian Painter teaches coding with Minecraft

Brian Painter is using Minecraft and Python to teach kids to code at the IronYard in South Carolina. They love it!  In this interview, he shares his techniques, helpful resources, and teaching inspirations (including Katie Cunningham, another of our top interviewees!).

Brian Painter
Brian Painter

#2 – Brad Miller’s search to Interactive Teaching Tools

Computer Science professor Brad Miller has been a huge inspiration to us at Trinket and in this interview he shares his background, how he came to be the maintainer of the open source educational software project Skulpt (which we use and contribute to at Trinket), and what he’s done with his Runestone project and and the excellent interactivepython.org

Continue reading

Top 10 posts from Trinket’s first year

When we started this blog in early 2014 we had a simple goal: to share stories, ideas, and interviews that anyone teaching or learning code would find useful.  Here are the top 10 posts we wrote this year.

1 – Why Python is a Great First Language

This post has become so popular we just refer to it as “Why Python” on the team.  It’s been a great conversation starter with potential users and supporters in the CS Education community time after time.  Check out how easy it is to print “Hello, world!”:

2 – Why Teachers Won’t Be Replaced By Software

It may seem strange at first that a tech company would write a post about how tech isn’t enough in the classroom.  But it’s core to what we believe at Trinket: that authentic connections between people are the true foundation of learning.  That’s why Trinkets are designed to be used by teachers in class, rather than supplant them.

Prof. Sara Sprinkle of Washington and Lee University leading her class though the time-honored PBJ Algorithm example.
Prof. Sara Sprinkle of Washington and Lee University leading her class though the time-honored PBJ Algorithm example.

3 – Beginning Coders Need Visual Examples

The standard bottom-up approach to teaching code starts with numbers and text because those are the basic data types.  But research has shown that visual introductions to programming are much more effective.  In this post we discuss the classic Peanut Butter and Jelly approach to algorithms and show how Trinkets can be used to visually describe for loops.

4 – Embeddable Python Charts

This post introduced the beautiful, simple Pygal library, which can make charts in just a few lines of code.

5 – How to Teach Programming with Google Sites

This posts details how Trinket transforms a basic Google Site into an interactive teaching tool.

6 – Writing Poetry in Python

I love the humanities and in this post show how Python can be used as a composition tool for poetry, inspired by the work of Nick Montfort.

7 – How to host a teacher coding event

What we’ve learned holding this kind of event and tips for when you host your own.

8 – How an Art History Major teaches programming, Parts 1, 2 and 3

How my humanities background has influenced my approach to teaching code.

Coding languages are human languages
Coding languages are human languages

 

9 – We should teach code like we teach language

Why I believe that coding education and language education are similar, cognitively and pedagogically.

10 – In search of a Middle Path for Edtech

I believe the techniques of high-growth startups can be successfully combined with great pedagogy.  Far from being opposed, I believe these can be combined to form a ‘Middle Path’ for education technology companies, one we try to find every day at Trinket.

 

Thanks for helping make these our most popular posts of 2014!  We hope to have more great content on our blog in the coming year.  Suggestions?  Want to pitch a guest post?  Get in touch.