Coder Social home page Coder Social logo

oo-python-theatre-actors's Introduction

Actor's Theater Work


Actor --------< Auditions >---------- Role

Introduction

The Flatiron Theater Company is holding auditions!

An Actor may Audition for many Roles, while a Role may have many Auditions for it & many Actors through Auditions!

 

Actor ----< Audition >---- Role

 

Getting started

  • Auditions should have a location (string), hired (boolean), belong to a role, and belong to an actor.
  • Roles should only have a character_name (string), have many auditions, and have many actors through auditions.
  • Actors should only have name ( string ), have many auditions, and have many roles through auditions.

Relationship

  • What relationships will this need (i.e. one-to-one, one-to-many, and many-to-many)?

A note about notation

  • When you see a "#" the functionality is related to the instance, a "." the class.

Testing

  • You can now view all of your Python files for your models in the lib folder. They will be automagically available for you so long as you use the python debug.py instruction to test your code.

  • Through this debug.py file, we've provided to you a console that you can use to test your code. To enter a console session, run python debug.py from the command line. You'll be able to test out the functionality that you write there.


Audition

-DONE! Audition#role returns an instance of role associated with this audition. -DONE!Audition#actor returns an instance of actor associated with this audition. -DONE! Audition#call_back() will change the the hired attribute to True.

Actor

-DONE! Actor#auditions returns a list of auditions this actor attended. -DONE! Actor#roles returns a list of roles the actor auditioned for.

  • Actor#characters returns a list of strings with all the different character names this actor auditioned for.
  • Actor#paychecks returns a list of strings with all the different character names that this actor has been hired for.

Roles

-DONE! Role#auditions returns all of the auditions associated with this role. -DONE! Role#actors returns a list of names from the actors associated with this role. -DONE! Role#locations returns a list of locations from the auditions associated with this role. -DONE! Role.silver_screen returns a unique list of strings for all the character names who have been hired.

oo-python-theatre-actors's People

Contributors

adam-larosa avatar professor-ben avatar dakota-vikdal avatar jlboba avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.