pygame is
Simple DirectMedia Layer is
Site Swing
Quantum Particle Golf

Quantum Particle Golf - 0.1

David Kamensky (dmk)



Gameplay and controls: The golf ball is now a wave (the white squiggly line) and only collapses into one place when you measure it's position (press space bar). It's likelihood of being measured in different places is related to the wave's amplitude in those places. You can change these likelihoods by pushing the ball's wave around with your golf club: a potential barrier (grey bar) whose height (up and down arrows) and position (left and right arrows) you can control. Try to measure the ball inside the hole (green area) with the fewest number of swings (measurements). When you get the ball into the hole, the hole will be randomly relocated.

Technical stuff: The white line displayed is the real part of the ball's complex wavefunction. I used a simple finite difference method to evolve the wavefunction over time (according to the Schrodinger equation). My back-of-the-envelope stability analysis consisted only of "make the timesteps really small", so there may exist reachable configurations where the scheme becomes numerically unstable. If your computer is too slow, the program will use longer timesteps and may behave erratically, but it runs fine on my (old) hardware. I have only tested this program on Ubuntu Linux, but I'm guessing that it will run unaltered on most platforms.


Fixed laplacian operator.


Home Page:


click to view original size


Quantum Particle Golf - 0.1 - Jul 26, 2011 account Comments

If you wish to leave a comment with your account, please sign in first.

July 26, 2011 2:45pm - David Kamensky - nickname: (dmk)
Fixed an error in the finite difference formula; re-download for corrected version.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
May 27, 2016

May 22, 2016

May 21, 2016

May 18, 2016

May 1, 2016

Mar 27, 2016

Mar 26, 2016

Mar 22, 2016

Mar 19, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)