Code Monkey home page Code Monkey logo

cs.11.03-lab.3.1's Introduction

CS.11.03-Lab.3.1

Objectives Learn how to use logical operators, arithmetic operators, and if statements to make decisions in your code.

Description One of the first games coded for early computers in the 1970s was called Colossal Cave Adventure. It was a text-based interactive fiction game where you had to make your way through an elaborate cave. The program only understood one word, such as, north, south, enter, take, or or phrase-commands, such as, drink water. You can try playing Colossal Cave Adventure recreated online following some of the commands in this walkthrough. Part of the challenge for the user is discovering the commands (vocabulary) that the program understands. Try out the program given with the starter code. This is a very simple adventure game that could let the user move in four directions. The starter code lets the user move north only.

Your Task Create a game that follows the style of text-based games. You will have to use all that we have learned so far. Your game must include:

  • A clear storyline with a beginning and end.
  • Users have to be able to win or lose.
  • At least one variable of type int/double, and one of type String.
  • Use of operators (*,+.-, /, %). Minimum one each.
  • At least two comparison operators (.equals() counts)
  • At least one logical operator.
  • At least 10 conditional statements. (if, if/else, if/else if/else).
  • At least 10 different methods with a variety of return types.

You may change anything in the starter code. As long as it's appropriate for school, you may have any kind of storyline for your adventure.

cs.11.03-lab.3.1's People

Contributors

gravo-lan avatar techarenz avatar

Stargazers

 avatar

Watchers

 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.