Create a Dodge Game on Micro:bit by Using Python

In my previous post, I introduced how to create a dodge game on the smart hub of LEGO MindStorms by using MicroPython. In this post, I would like to introduce how to write a Python version of dodge game on micro:bit by using its new Python Editor (beta version). The final effect could be like …

Continue reading Create a Dodge Game on Micro:bit by Using Python

Coding Micro:bit with Python – Which Python Editor to Choose From?

If you feel that LEGO robot is too expensive, you have another choice micro:bit. There are several editors we could use to code micro:bit. What are their differences and which one is better if we want to code micro:bit with Python? In this post, I would like to compare briefly several editors for micro:bit. The …

Continue reading Coding Micro:bit with Python – Which Python Editor to Choose From?

Use LEGO MindStorms Smart Hub to Design a Dodge Game – This Time Using Python

This post is closely related to my previous post - use LEGO MindStorms Smart Hub to design a dodge game. The difference is that in this project, I will use Python to implement the same functionality as I did in the previous post. If you are interested, you could open the two posts side by …

Continue reading Use LEGO MindStorms Smart Hub to Design a Dodge Game – This Time Using Python

Use LEGO MindStorms Smart Hub to Design a Dodge Game – Refer to a Micro:bit Sample Project

Recently, we have been exploring Micro:bit and its huge eco-system to see if we could bring some high-quality lessons to our existing workshop portfolio. Honestly, I am amazed by the Micro:bit eco-system. It is compatible to large amount of hardware, especially the sensors. Soon, I will update a post about the comparison between Micro:bit and …

Continue reading Use LEGO MindStorms Smart Hub to Design a Dodge Game – Refer to a Micro:bit Sample Project

First Experience of CoderZ and Comparison between Cyber Robotics and Physical Robotics

The first sight of CoderZ gave me the impression that it was teaching some simple operations of turning and moving, as well as math calculation, especially when I do the activities in its trial lesson CoderZ Adventure with LEGO Education Spike Prime. If that is the case, the difference between cyber robotics and physial one …

Continue reading First Experience of CoderZ and Comparison between Cyber Robotics and Physical Robotics

Make Your LEGO Robot Play Tic-tac-toe Game

When we have a LEGO MindStorms set, we could create different models to simulate real world mechanics or creature. We could make the robot carry a stuff, follow a route to transfer the stuff. There is no limitation for the creation. In this post, I would like to introduce a project of having the robot …

Continue reading Make Your LEGO Robot Play Tic-tac-toe Game

A Self-help Guide to Learn Pgzero and Develop Python Games

If you have read my previous post PyGame is too complicated? Try PgZero, you might have an impression that Pgzero is much simpler to be used than PyGame. On the other hand, you might think it could only develop some simple games. Actually, using proper tools, we could use Pgzero to develop any games which …

Continue reading A Self-help Guide to Learn Pgzero and Develop Python Games

Find Maximum Prime Factor of a Number by Using Python – Algorithm Explanation

Recently, I am teaching students algorithm using Python. One question is to find maximum prime factor of a given number. When we consider algorithm, we should consider both the running time and occupied memory of the program when the input is an extremely big number. The following algorithm is very typical to get the prime …

Continue reading Find Maximum Prime Factor of a Number by Using Python – Algorithm Explanation

A Method to Encrypt the Answer in Scratch Programming

If you are designing a quiz project in Scratch, you will check if the user could answer the questions correctly. However, since all the published projects share the code, your user could always "see inside" of the project and get the answer, like the following code snippet. How could you test your user without getting …

Continue reading A Method to Encrypt the Answer in Scratch Programming

PyGame is too complicated? Try PgZero

In my previous posts, I introduced how to use PyGame to design 2D games with Python language. Pygame adds functionality on top of the excellent SDL library. User controls the main loop, designs their program functions and different sprites' interaction. This gives user greater control in creating fully featured games and multimedia programs in the Python …

Continue reading PyGame is too complicated? Try PgZero