Skip to content

christianstefaniw/monkey-and-zookeeper-dilemma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monkey and Zookeeper Dilemma

We talked about a dilemma related to a zoo keeper trying to feed a monkey in physics class a few days ago and I decided to find two solutions to the problem. The dilemma is there is a zoo keeper who wants to feed a monkey that is hanging on a branch, the zookeeper is using a banana launcher to launch bananas at the monkey. The catch is, when the monkey hears the launcher go off, the monkey falls from its branch. How can the zookeeper feed the monkey?


Option 1:

  • Turn off gravity (quite unrealistic)
    No Gravity Demo

Option 2:

  • Aim the banana launcher at the monkey and fire, both objects will fall at the same time so the banana will hit the monkey on the way down!

Gravity Demo



Press the space bar to launch a banana!
Press "1" to change the gravity and refresh rate



This was my first time using Pygame

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages