Beruflich Dokumente
Kultur Dokumente
You Lose! If you run out of money before you can complete
the puzzle.
How To Play
Initial Amount: Player starts with $1000
Game Sounds
Spinning sound
Bill: printPhrase() - Grabs puzzle text, and parses it into single letters and dashes, depending
upon Wendys exeGuess().
spinWheel() - Generate random numbers (currency formatting). Print to screen with spinning wheel
sound each time. Return final result: Value of players guess.
In game sound effects - Build functions to play synthesized game sounds.
Chris: playSound() - Parses out dialog sound file and plays back only words that player completes,
using pre-defined sample indexes.
Brian: pythonOfFortune() and userMenu() - Main functions to execute game and player option menu.
Build game dialog sound file and index words - Cut three movie dialogs together into one file.
Idendify and list start and end sample indexes for every word in all dialog.
Our Approach
Meet And Review Work In Progress: After working separately on our
individual responsibilities, we met as a group, discussed our
progress, and made some tweaks to our workflow when necessary.
Integrate Parts Of Code Back Into Project: As are code parts were
coming together, we would upload them to gitHub into our master game
file.
Debug and Debug AGAIN!: While this may seem pretty obvious, we
would run our game with as many scenarios as we could think of to
see where it may break.
Results - The Home Stretch!
Finalized our concept
Debug
Debug Again!
Python of Fortune - Demonstration
Start the game: pythonOfFortune()
Demo
When starting the game, the player
must first select the /assets
folder, which contains the image and
sound assets.
Demo
Type one of the following options:
Demo
Our version of a wheel spin is to
print random dollar values one at a
time with a click sound in-between
to simulate the wheel hitting marks
(just like the television show!).
We hit $240.
Time to guess a letter:
Demo
Please guess a letter: a
Demo
The player spins again. This time the
result is: $130
Demo
After the player completes at least one
word from the puzzle, he/she can now play
sound to hear that part of the dialog.
As the player completes more words, the
play sound function will play those
parts of the dialog. If they complete the
puzzle, they can hear the entire phrase.
Then YOU WIN!!!!
Wendy: Project Responsibilities
In this project, it was my responsibility to create the
following functionality:
Initialize the game by randomly picking from a database
of quotes and assigning variables accordingly
Evaluate a guessed letter by checking for whether itd
been already guessed, existence in quote and number of
occurrences, and reward or deduct money accordingly.
Check for game win/loss and play appropriate sounds.
Upon win, display an image taken from the quotes movie
with the title and quote displayed on it.
Bill: Project Responsibilities
In this project, it was my responsibility to create the
following functionality:
Write function that loads phrase into a sentence list of
word lists and returns it along with a matching list of
blanks with non alpha characters left intact
Function to grab puzzle text, and parse it into sentence
and/or dash form, used by Wendys execute guess function.
Function to generate random numbers and simulate player
spinning wheel and return amount player is playing for.
Functions for in-game sound effects (e.g. wheelspin,
correct guess, incorrect guess, win, lose)
Chris: Project Responsibilities
In this project, it was my responsibility to create the
following functionality:
I created the playSound() function. My function takes the
phrase in its current state and plays the section of the
audio clip where the word has been completed. It does this
by traversing each letter of each word in the list. If an
underscore exists in place of a letter, the word is not
complete and playSound() will not play that section of the
sound. I also added a list of the start and end sample
indices for the playSound() function to know where to find
the audio for each word.
Brian: Project Responsibilities
In this project, it was my responsibility to create the
following functionality:
Cut all movie dialog together into one file
Index all samples for start & end of each word in dialog
Build pythonOfFortune() introduction function
Build userMenu() function, which calls all other game
functions.
Build and organize power point (google slides)
presentation.
Wendy: What I learned In CST205
The Top Three Things I Learned in this Course: