Skip to content
Go back

Who is up for a programming challenge?

Updated:

Is anyone still doing good, old-fashioned machine learning or programming? Or is everyone prompting and trying to tame LLMs (and asking themselves why)?

Here’s a small programming challenge, an old-fashioned brain teaser and a balm for the soul.

Motivation

Rush Hour

The other day, my son brought home a game from the library and asked me to play with him. Long story short, I couldn’t solve any of the puzzles, so I decided to use a brute-force approach, similar to what we are trying to do with intelligence.

The game is called Rush Hour, was invented by Nob Yoshigahara in the 1970s, and is produced by ThinkFun.

Like many other puzzles, this problem is PSPACE-complete.

I know there are many solutions out there, but I want to enjoy the process of solving it myself, so I’m not going to look at them. I hope you share that sentiment and adhere to the code of honor. If you show me your solution, I promise not to look at it until I finish mine.

Challenge description

The challenge is simple. Given the initial position of the cars on the board, find a sequence of moves that will lead the red car 🚗 to the exit of the maze.

I created a getting started template with a simple reference implementation of the game (without the solver), as well as a few examples with initial positions and solutions. Feel free to choose a different starting point if it better suits your needs.

Code of conduct

Prize

Personal satisfaction. Plus, I might invite you for coffee.

FAQ


Share this post on:

Previous Post
Turtles all the way down, understanding the foundations
Next Post
A programming language for describing (most) of the world