GithubHelp home page GithubHelp logo

zork's Introduction

The classic Zork Dungeon Crawler Coding Challenge.

Created by Srikant Kumar Kalaputapu and Toma Tadros

This is a paired programming assignment. You will be working in teams of two.

Pair programming (sometimes referred to as peer programming) is an agile software development technique in which two programmers work as a pair together on one workstation. One, the driver, writes code while the other, the observer, pointer or navigator, reviews each line of code as it is typed in.

While reviewing, the observer also considers the "strategic" direction of the work, coming up with ideas for improvements and likely future problems to address. This frees the driver to focus all of his or her attention on the "tactical" aspects of completing the current task, using the observer as a safety net and guide.

Zork is a famous text-only adventure game for the computer. Users would type commands and navigate the rooms of a castle.

Write an application that asks the user what direction they wish to travel in. Once they tell you the direction, move them to the next room and tell them what is in it and what direction the other exits are.

//IGNORE THIS When you develop your program you must include each room in its own method. (Reminder: Creating Methods). The only role of the main method is to get input from the user and direct the user to the appropriate room.

Your program shall allow the user to move from one room back and forth to any other connected room.

You program should allow the user to find the secret room only 25% of the time. However, once they find the secret room they can always find it.

When the user exits the house or quits there is a 25% chance they will be followed by a ghost. Let them know when they are being followed.

Also let the user know how many rooms they visited after they exit or quit. room contains doors to (direction & room #) #1 foyer dead scorpion room n2 #2 front room piano rooms s1,w3, e4 #3 library spiders rooms e2 & n5 #4 kitchen bats rooms w2 & n7 #5

dining room

dust

empty box room s3 #6 vault 3 walking skeletons

room e7

room e8 (only 25% chance of finding) #7 parlor treasure chest rooms w6, s4 #8 secret room piles of gold room w6

You are standing in the foyer of an old house. You see a dead scorpion. {You can (1)exit to the north or press Q to quit} 1

You are standing in a library. You see spiders. { You can (1) exit to the north, (2) exit to the east. }

zork's People

Contributors

ksriki avatar tadros3 avatar

Watchers

 avatar  avatar  avatar

Forkers

winstont-27

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.