CS160-Assignment 3 – Text Adventure Game Solved

30.00 $

Category:

Description

Rate this product

Systems vs. Applied CS options:

You need to navigate the EECS advising website and research the similarities and differences in the systems versus applied options, as well as answer the following questions:

 

http://eecs.oregonstate.edu/currentstudents/undergraduate/programs/computerscience

 

  • What are the similarities between the two degrees?
  • What are the differences between the two degrees?
  • Which degree do you see yourself more interested in?
  • Even if you are more interested in the Systems degree, what would you be interested in with the applied? Which pre-approved plan would you pick or which plan would you create on your own, and why?

Computation(Don’t worry, we will discuss this more in class and lab this week!)

(70 pts) We have been learning about problem-solving skills, algorithms, data representation, and operations on data.  Given the following problem, use George Polya’s problem-solving steps to solve the problem.

The local middle school would like some text adventure games to keep their students occupied during down time. The school is leaving it up to your skill and good judgement to develop a game. You need to have 5 different endings, but other than that requirement, you are free to do whatever else you want.

  • (10 pts) Understanding the Problem: You must state any assumptions about the problem and requirements to solve the problem. How do you understand the problem? What do you think are the requirements for this game?
  • (20 pts) Devise a Plan: You must handwrite instructions/plan for solving the problem. Be VERY explicit!!! Write a flowchart or pseudocode to show your logic and thinking.
  • (10 pts) Looking Back: You must test your instructions on paper showing how any piece of data would change with each instruction using pictures. What will happen with good data?  What will happen with bad data?  Provide your expected results.
  • (30 pts) Carry out the Plan: Implement your solution and see how explicit your instructions are.

 

An example of the run of the program looks like this (but it can be any variation with 5 different endings or paths):

Hello and welcome to the adventure! To go right enter 1, to go left enter 2: 1

You chose to go right. You have now entered Scandinavia and are being hunted by friendly oxen.

Enter 1 to befriend the oxen, enter 2 to run from the oxen: 1

You attempted to befriend the oxen. You think you can ride them. Enter 1 to attempt to ride the oxen, enter 2 to walk away: 1

Unfortunately, fate was not on your side, and you did not befriend the oxen. Enter 1 to walk right, enter 2 to walk left: 1

You chose to go right. You have now entered America and are fighting a strong warrior. Enter 1 to throw your arrow at the warrior, enter 2 to run home: 2

You chose to go home.  The adventure has ended.

Now, write the Python program for your text adventure game using variables, expressions, and if/else statements.

 Extra Credit:

You need to have 4-5 different nested if/elif statements.  It doesn’t matter how you nest these statements, but you need to have some if statements that include other if statements. These need to be represented in your logic/problem solving steps, as well as your program.

 

  • Assignment3-hzskd4.zip