GameGrid: Game programming with Java

Research project PHBern  
HomePrintJava-Online

Ski lift simulation


In this example we try to simulate the situation of riding down a ski run, waiting in line at the ski lift and moving back up the hill on the lift.

The red skiers are faster riders than the blue ones. The following questions are of interesst:

  • Under the condition that there are the same amount of blue and red skiers, it seems interresting to know which skiers wait longer in line.
  • To know about the riding pleasure, it is good to know how much the skiers ski compared to the time waiting.
  • Even tough the red skiers ride twice as fast as the blue ones, which skiers ended up riding a longer distance at the end of the day.

Editing the code in our Online-Editor, it is possible to change the parameter to investigate its effect.

 

 

Run this example

Edit this example in the Online-Editor