Skip to content

Homework Assignments

sleepinghungry edited this page Jan 17, 2017 · 4 revisions

Homework Assignments

Locations and Connections Homework

  1. Open IDLE
  2. Open wwif/homework/locations_list.txt
  3. Open wwif/homework/locations.py (You will code your homework in this file)
  4. Save As locations.py as your_name.py (I would save as eping.py.)
  5. Using the locations in locations_list.txt to write
    • 4 new location commands
    • 3 new connection commands, and
    • 1 command to create a player

REMEMBER: CTRL-C to copy, CTRL-V to paste.

Use the The Handy Dandy Guide to Locations and Connections for step-by-step instructions

Items Homework

  1. Open IDLE
  2. Open wwif/homework/items_list.txt
  3. Open wwif/homework/items.py (You will code your homework in this file)
  4. Save As items.py as your_name2.py (I would save as eping2.py. DO NOT OVERWRITE YOUR LOCATIONS HOMEWORK)
  5. Using the items in items_list.txt to write
    • 2 new object commands (1 key and 1 ball)
    • 1 add phrase commands, and (to bounce the ball)
    • 1 make requirement command (to make the key required to open a door)
Use the The Handy Dandy Guide to Items for step-by-step instructions

Actors Homework

  1. Open IDLE
  2. Open wwif/homework/actors.py (You will code your homework in this file)
  3. Save As actors.py as your_name3.py (I would save as eping3.py. DO NOT OVERWRITE YOUR LOCATIONS OR ITEMS HOMEWORK)
  4. Add an Actor to the game and attach a special phrase using:
    • 1 Actor command
    • 1 set_location command
    • 1 add_phrase command
    • 1 add_actor command
  5. Add an Animal to the game that wanders around the game using
    • 1 Animal command
    • 1 set_location command
    • 1 set_allowed_locations command
    • 1 add_phrase command
    • 1 add_actor command
  6. Optional. (Advanced): Add a custom action to the character using
    • 1 def custom_action definition
    • 1 add_phrase command using the Verb command instead of the Say command
Use the The Handy Dandy Guide to Actors for step-by-step instructions

BWX Game Engine pages

Python Pages

Step By Step Guides

Building Conditionals

Lectures

Explaining Conditionals

Assignments

I Am Thinking of a Number...

Clone this wiki locally