-
Notifications
You must be signed in to change notification settings - Fork 0
DevinPlumb/Swing-Monkey
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
COS 324 Homework 6 This is the code for the homework on planning and reinforcement learning. There are several files in this directory. SwingyMonkey.py -- This is the Python code that implements the game and renders it on screen. It has a main function, so you can run it and play the game by hand if you want. This will also help make sure that you have the dependencies installed. You can play by typing: bash$ python SwingyMonkey.py This will bring up a game window and you can make the monkey jump to a new vine by pushing any key. stub.py -- This is a simple example of how you can control the Swingy Monkey game programmatically. It is a very simple class and script that makes it jump randomly and has examples of the callbacks and how to use them. It turns off the sound and makes the game run super fast for learning. You can run it via: bash$ python stub.py res/blop.wav, monkey.png, tree-pixel.png, jungle-pixel.png, screech.wav -- These are media resource files for the game. There is no need to modify them. You'll need to install the pygame module to make this run. Ideally you'll be able to pip install this with no problem. In the past, this module has seemed to depend on SDL (http://www.libsdl.org/) and you may need to make sure you have a couple of other libraries installed for loading the PNG files. I achieved this using Homebrew on Mac with: bash$ brew install sdl sdl_image sdl_mixer sdl_ttf portmidi If you have problems and have already Googled for your error message, post on Piazza for help.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published