Athenian Summer 2020 Computer Programming Sampler
Open This Document
Short link to this page: bit.ly/db-tas-2
See a detailed log from this class in 2019.
We will pull lessons from the following, depending on your interests:
- Introduction to Python
- Python Turtle Graphics
- Sonic Pi
Provide Some Information about Yourself
Please complete this form.
We used the
line function to draw line segments, and then used the mouse position to
place one end of the line segments, creating an interactive artwork. We worked through Challenge 1 on the course web page. One student finished Challenge 2.
For advanced students who finish exercises early: Play with and modify this adventure game.
We reviewed the solution to the multiple lines program, and started on Challenge 2. Students might finish Challenge 2 for homework, and may review the solution video. We began work on a star field program, practicing with the random function.
We reviewed the resources in the p5.js course. We created a random star field program with different colors, and then did Challenge 3. We began working in 3D, making a sphere and a cube, and learned how to rotate it on any of the three axes. We started on a rising elevator program.
We made the elevator car rise, using a variable and decrementing it in the draw function. We used push and pop to isolate the effects of transformations, and then created a sketch with multiple 3D objects, placed at different positions. The students started on Challenge 4, Multiple 3D Shapes Artistic Sketch.
Speech Synthesis and Recognition
Getting started; Hello, World; input
Continuing Learning Python
Throwing dice and flipping coins. Using variables to count the number of heads and tails.
High-Low Guessing Game
Dave’s Example Code
Review High-Low Game
Counting dice throws program
- Graph results in spreadsheet
- Scala, Processing simulation
Prepare for Tomorrow
- Download and install Sonic Pi
- Quick Sonic Pi demo