pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Quantum Particle Golf

Quantum Particle Golf - 0.1

David Kamensky (dmk)

Tags:

Description

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.

Changes

Fixed laplacian operator.

Links

Home Page: http://www.pygame.org/project-Quantum+Particle+Golf-1949-3471.html
Source: http://www.mediafire.com/?w4gppwu3jlfc0b3

Screenshot


click to view original size

Releases

Quantum Particle Golf - 0.1 - Jul 26, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 23, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

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