Code Monkey home page Code Monkey logo

cs440's Introduction

First Scenario ( Story ) The player starts the game by typing the name of the executable program, passing a filename as a command-line argument.

When the user first launches the program, the system displays an opening welcome screen, and briefly describes its purpose and how to play. ( Full details are available by typing HELP at any time. )

The game then attempts to open the file specified by the user and read in its contents, building the environment described in the file. The game should be able to read any file that conforms to the GDF 1.0 file specification provided. If there are any problems reading the file the program may either ignore content that it does not understand or abort, depending on the severity of the problem. Upon success the game “displays” the initial starting place, which by default is the first place in the file

The system then accepts commands from the user, which may be any of QUIT, EXIT, HELP, GO, or LOOK, in any case or case combination.

The GO command must be followed by a direction, which must be one of: N, NORTH, S, SOUTH, E, EAST, W, WEST, U, UP, D, DOWN, NE, NW, SE, SW, NNE, NNW, SSE, SSW, ENE, ESE, WNW, WSW.

The LOOK command may be followed by one of the aforementioned directions, or it may be entered without a direction. ( “LOOK” by itself basically means “LOOK HERE”. )

Based on the user input, the game allows the user to wander around the environment and explore the space. If a user cannot go in the direction they requested, the system should have separate ( different ) messages distinguishing between there being no path in that direction and there being a path that the user cannot follow. ( Using the sample environment file sixRooms.gdf, the user should get a different message when they try to go south than the one when they try to go east. )

When the user exits the game, either by typing EXIT or QUIT or by going out of the environment exit, then the program should print out a final “conclusion” screen, and thank them for coming.

cs440's People

Watchers

 avatar  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.