Using Python’s NumPy To Improve Your Board Game Strategy: Your Odds When Attacking in ‘Risk’

Image of board game - NumPy and Board Games in Python

I first played the board game Risk during my doctoral studies. We occasionally stayed up all night playing this game. I hadn't played it for many years, but I bought it "for the kids" this Christmas, so I got to play it again. And soon, I found myself wondering what the odds are for the… Continue reading Using Python’s NumPy To Improve Your Board Game Strategy: Your Odds When Attacking in ‘Risk’

Simulating a 3D Solar System In Python Using Matplotlib (Orbiting Planets Series #2)

One of the uses of programming is to help us understand the real world through simulation. This technique is used in science, finance, and many other quantitative fields. As long as the "rules" which govern the real-world properties are known, you can write a computer program that explores the outcomes you get from following those… Continue reading Simulating a 3D Solar System In Python Using Matplotlib (Orbiting Planets Series #2)

Simulating Orbiting Planets in a Solar System Using Python (Orbiting Planets Series #1)

Orbiting Planets in Solar System

One of the many applications of programming in Python is simulating the real world. In some cases, the simulation is a way of solving a problem that would be difficult or impossible to solve using other means. In this article, you'll explore simulating orbiting planets in a solar system using Python. You'll create code that… Continue reading Simulating Orbiting Planets in a Solar System Using Python (Orbiting Planets Series #1)

The Real World in Python: Coding A Bouncing Ball (Bouncing Ball Series #1)

Simulating a Bouncing Ball in Python

The real world can be a difficult place to understand. Whether you’re trying to make sense of the people that make up the real world and their actions, or the physical world itself, things are never easy. Sometimes, coding can help understand what’s going on and maybe, just maybe, help find a solution to a… Continue reading The Real World in Python: Coding A Bouncing Ball (Bouncing Ball Series #1)