PyTraffic Screenshot A Python version of the well known puzzle game "Rush Hour".

The goal is to remove the red car out of the grid through the slot on the right. To do this you have to slide the other cars out of the way. PyTraffic comes with about 19,000 puzzles ranging from intermediate to expert, and has an extremely smart hint facility which is able to find the best move in every position.

License: free
Requirements:

  • Python
  • pygtk 2.4
  • pygame

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesnonononoyes
Suggest an update

Comments

Really great. I love Rush Hour, and this is a well done implementation. 4 stars.

By the way, the music doesn't sound too good with my alsa sound card.

Rushhour is awesome; great idea to bring it to the screen. My only wish would be to use an isometric interface instead of the top-down view. Here is an example of what I mean (from another game). Keep up the great work!
I can't get it to run. Maybe because the system is a bit older? (SuSE 8.2). Unfortunately there is no real specification on what versions of e.g. Python are needed. When I try to run it I get
Traceback (most recent call last):
  File "/usr/share/pytraffic2/Game.py", line 24, in ?
    import pango
ImportError: No module named pango
Yes, things are installed:
hst33127:pit% rpm -q gtk2 python python-gtk python-pygame pango
gtk2-2.4.13-0.gbv.1
python-2.2.2-111
python-gtk-2.0.0-jw2
python-pygame-1.5.5-78
pango-1.4.1-0.gbv.1
Oh, and maybe get the tar.gz install more configurable. I don't really like manual installs in the main /usr-tree.

Pit

Re: Does not work posted by anonymous on Mar 4 2005 2:53 AM
I think you need python 2.3 but couldn't find any information on the homepage.
Re: Does not work posted by anonymous on Mar 9 2005 8:47 AM
Try installing pygtk. It contains the interface to both pango and gtk.
Awesome game, python works well them this kind of game that doesn't require high frame rates. Probably the best python game that I've seen so far.

Great work!

Great game. You should look at another screenshots at pytraffic homepage to see the isometric-3d board.

However, I find this game misses some useful features:

  • Puzzle browser/puzzle selector - this should allow use select a puzzle by showing its thumbnail preview or using just a number (like windows FreeCell "select game").
  • A list of solved and unsolved puzzles. Maybe with "records", showing how many movements were needed and how many the player used. Maybe show also fatest times.

I'm running Gentoo "stable" (GTK 2.6, Python 2.4) and when I run this game, it throws some warnings on terminal. Maybe these should be fixed.

Re: Great posted by CrazyTerabyte on Dec 2 2005 5:48 PM
Some more improvements:
  • Some unuseful but cool statistics about current puzzle: number of pieces, number of pieces of size 2 and of size 3, number of not covered squares on board.
  • Above list of "unuseful cool statistics" would be available at puzzle selector too. Maybe "search for puzzles with ..." and "order by ..."
  • Show the time the player spent solving a puzzle. (not needed to record this time, though)
  • Enable a "hint-helper" function, which would highlight all possible moves.
Wow, the last comment on this game was over 2 years ago.

That is cool that pygame dep has been removed, might make this an interesting game to study in learning how to program.

Log in or register to rate this game or post a comment.