Discover Python and Patterns (6): Random – Design Patterns and Video Games

In the previous post, the magic number is always the same. I propose now to introduce random numbers to change the magic number every time we launch the game. I also present imports and more on integers. This post is … Continue reading →… Read more

Similar

Python Circular Imports

What is a Circular Dependency? A circular dependency occurs when two or more modules depend on each other. This is due to the fact that each module is defined in terms of the other (See Figure 1). For example: functionA(): functionB() And functionB(... (more…)

Read more »

AppleScript for Python Programmers

I'm a Python programmer who switched to Mac OS X. Being nerd and needing to automate common tasks, the learning of the AppleScript language was unavoidable. To speed up the process I've took some notes, comparing the new commands to Python statements. The... (more…)

Read more »