Giter VIP home page Giter VIP logo

fsw-text-based-adventure's Introduction

Text-Based-Adventure

Introduction

This project will build on the skills that you've learned after your first couple weeks of programming in JavaScript! You will build a command line application that plays a text-based adventure game.

Examples

Look here and here for a couple examples of the genre. Be creative!

A fun Google easter egg is to Google search text adventure. From the results page right click on the page and inspect the console. You should find a game by Google.

Reading input

This project imports an npm module called readline-sync that allows the user to enter input to the terminal. The line at the top: const readline = require('readline-sync') gives you access to this functionality

Use the following line to get user input:

let yourVariableHere = readline.question("Enter your name: ")

Setup Instructions

  1. Fork this repo
  2. Clone the forked repo to your machine
  3. cd to the cloned folder and type npm install in the terminal.
  4. Create a file called .gitignore.
  5. Inside of .gitignore write node_modules/

Submission Instructions

  1. Complete the project
  2. Commit and Push your changes to your fork
  3. Submit a Pull Request back to the assignment repo
  4. Paste a link to your Pull Request (not your fork!) on Canvas and submit

User Stories

As a user, I want to be able to begin a game

Acceptance criteria

  • Cloning your project, running npm install and node YOURPROJECTNAMEHERE.js will start a game
  • No errors are logged to the console
  • The game displays initial instructions about how to play and a welcome message

As a user, I want to be able to make decisions during the game

Acceptance criteria

  • Invalid entires are re-prompted
  • There are at least 10 opportunities to make a decision
  • The user must enter a string to make a decision
  • The user must enter a number to make a decision

As a user, I want to be able to restart a game

Acceptance criteria

  • The user is prompted to restart the game and can enter yes or no
  • Entering no causes the program to terminate
  • Entering yes begins the game again, wiping the previous state

Trello Board

Replace the link below with the link to your Trello project:

Trello

Rubric

outcomesRubric.png acRubric.png

fsw-text-based-adventure's People

Contributors

74001w avatar benstone1 avatar celinechole avatar coreyladovsky avatar jabyess avatar

Watchers

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