Giter VIP home page Giter VIP logo

word-guess-csv's Introduction

Exercise: Word Guess CSV

The goal of this exercise is to refactor the included word_guess.rb to get its words from the included words.csv.

Playing the Game

Run $ ruby word_guess.rb to start the game. Choose a difficulty level and then try to guess the word one letter at a time. You win when you complete the word, and lose if you run out of guesses.

Debug mode

The WordGuess initializer accepts an optional boolean. Pass true to put the game in debug mode, which will reveal the chosen word at the beginning of the game.

Requirements

  • Alter the game to get its words from the provided words.csv.
  • The CSV has three lines. The first entry on each line is the difficulty and every other entry is a word for that difficulty.
    • Example: e,cat,hat,bat,rat,sat,wat,nat,mat....
    • The e is the difficulty (easy mode).
    • Everything else is a word for the easy difficulty
  • The updated program should read the csv and select a random word from the appropriate difficulty.
  • No other gameplay changes are required.

word-guess-csv's People

Contributors

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