This talk focuses on two major ways people learn to program:
Building-Block Learning and Explorative Learning
print("Hello World")
What I think of for traditional class-room/tutorial type teaching. The student learns the basics of:
And along the way students build
cool stuff and become programming gurus
(main take-away for this talk)
Explorative learning is what I think of when a student gets something functioning and tinkers to learn how it works
My love of programming grew out of exploration
case: I started really programming by
modifying SPECTRE (Fortan77), software used for astronomy
case: I also learned by taking html/css and modifying pieces until it looked how I wanted
case: How about you?
(queue audience interaction)
Benefits of this type of learning include:
Pyglet is a python interface for creating games across Microsoft Windows, Mac OS X, and Linux using OpenGL
Library choices for making games in python:
I chose pyglet for this tutorial because it is easy to get running and I wanted to increase the number of examples for it
I started a git repo of simple games using pyglet
It contains working projects which can be explored and also spun off into their own repos
|- pyglet_projects/
|- README.md
|- spinoff_projects.md
|- projects/
|- asteroids/
|- mind_sweeper_basic/
|- snake_with_basic/
I implemented a version of the classic game: snake
cd projects/snake_basic
python3 run.py
Step 1 of exploration is to just see what it does and how it behaves
Step 2 is to open it up and tinker
(show and tell time)
Step 1 of exploration is to just see what it does and how it behaves
Step 2 is to open it up and tinker
Modification examples:
Step 1 of exploration is to just see what it does and how it behaves
Step 2 is to open it up and tinker
Modification examples:
Step 1 of exploration is to just see what it does and how it behaves
Step 2 is to open it up and tinker
Modification examples:
Explorative learning should accompany building-blocks learning for when teaching programming
Pyglet projects is an explorative learning resource for both students and teachers
Explorative learning should accompany building-blocks learning for when teaching programming
Pyglet projects is an explorative learning resource for both students and teachers
Dylan Gregersen