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