From Playing Games to Creating Games: The Charm of Programming

//

This summer, the young reporters received a small package: a glowing component and a data cable. Upon opening it, we see that the front of the component has two buttons and a 5×5 grid of glowing dots. The back has some complex circuits and chips, while the side has two interfaces—this is the material package needed for the “Little Programmer” vocational experience class.

From Playing Games to Creating Games: The Charm of Programming

During the holiday, the young reporters met online and learned about micro:bit from Teacher He Xuechen from Shanghai University of Electric Power, stepping into the role of “Little Programmers”.

From Playing Games to Creating Games: The Charm of Programming

The young reporters followed Teacher He’s instructions diligently.

From Playing Games to Creating Games: The Charm of Programming

The young reporters assembled electronic components.

Before the course began, Teacher He played some introductory videos on simple artificial intelligence program design in the online classroom. In the videos, students used the micro:bit hardware and related software to create automatic access control systems that could measure temperature and disinfect, pet care machines that could feed pets on a schedule, and garage management systems that could intelligently divert traffic based on flow. Teacher He mentioned that these program designs might soon appear in everyone’s lives. The young reporters developed a strong interest in programming and the mysterious micro:bit system.

According to Teacher He, micro:bit is a microcomputer development board designed for youth programming education, launched by the British Broadcasting Corporation (BBC). It is based on the Python language and can receive instructions through various channels. With just one main board, multiple program effects can be achieved. Compared to Python, micro Python can be based on micro:bit, allowing programs to manifest on the board, making it even more fun.

From Playing Games to Creating Games: The Charm of Programming
From Playing Games to Creating Games: The Charm of Programming

The young reporters listened attentively.

Next, Teacher He instructed the young reporters to open the programming app—MU, officially starting the fun-filled micro:bit programming journey. At the beginning of each project, they first had to write “from microbit import *” to indicate that instructions were being issued to the program board. Then, the young reporters tried to input “display.scroll(‘Hello’)”; after importing the program into the board using the data cable, the word “Hello” immediately began to scroll on the board. Following this logic, they made the program board display custom patterns like a smiley face, a boat, and stars.
From Playing Games to Creating Games: The Charm of Programming

The young reporters used programming to design a smiley face pattern.

The course was structured from easy to difficult, with increasing code length, leading to the final challenge of the “Sad Pet”. Young reporter Yuan Ziqin, upon discovering that the program did not work correctly on the first upload, searched online and modified and debugged it according to the teacher’s previous explanations. After clicking “upload”, the desired effect appeared on the board. Young reporter Su Yueqi designed a pet program that initially displayed a crying face and the word “sad”; after pressing the A key, it changed to a smiley face, and after pressing the B key, it displayed the text “I’m happy now” along with a smiley face. She simulated an electronic pet with her program, indicating that pets need human care and companionship. Young reporter Fan Hengye faced challenges such as program errors and startup failures during the process; although he did not achieve the joy of success, he gained the experience of writing lines of code through continuous attempts and challenges.

In just two hours, the young reporters experienced the ever-changing nature of programming, completely altering their rigid impression of programming as difficult and confusing. Teacher He’s professional, detailed, and patient teaching allowed everyone to feel the endless fun of micro:bit. Young reporter Nan Runqing felt, “Through this little programmer experience class, I realized that to be an excellent programmer, one needs strong learning abilities, practical skills, the ability to handle pressure, and the capability to solve problems independently, as well as keep up with technological trends to avoid being eliminated by society.”

China’s chip technology is increasingly advanced

Perhaps the teenagers learning programming now

Will be the country’s programmers in the future?

Young reporters Zhang Hongyu, Yuan Ziqin, Fan Hengye, Lin Junzhuo

Luojiahua, Chen Yiyao, Nan Runqing, Su Yueqi

Text by Yang Jialu, Wang Zihan

Edited by Xing Yanzi

Want to know where news comes from?

Want to know how to distinguish true from false news?

Want to know what preparations need to be made before an interview?

Want to know…

How to become a little news person?

Published by the editorial department of “Youth Daily”

Volume One of the Youth Media Literacy Education Series

“Listening, Reading, and Speaking of News” will tell you the answers!

Welcome to scan the code to enter

The official online store of Shanghai Xueyou Bookstore to purchase

From Playing Games to Creating Games: The Charm of Programming

Previous Issues Review

1. The Making of Chief Little Diplomats: The Journey of All-Round Kids

2. New second-grade spots are limited! Want to create with us? The surprise twist is today

3. 2022 Middle and Primary School Students’ Ancient Poetry and Calligraphy Conference Works are Hotly Collected

4. The preliminary selection for the 2022 Seventh Primary School Ancient Poetry Conference starts on October 22

5. Inviting science lovers to showcase their creative ideas: The submission phase for the Yangtze River Delta Middle and Primary School Science Popularization and Science Fiction Works Collection is entering the countdown

6. We look forward to your works! The submission deadline for the “Science Popularization Campus Tour” photography collection is counting down

7. Little Testers Try It Out: Forests, Mazes, Artworks, Artificial Intelligence; besides books, the East Hall has…

8. From healing those at home to supporting the new semester; this student uses a cat character to bring smiles starting September 1!

Leave a Comment