Giter VIP home page Giter VIP logo

consolehangman's People

Contributors

spicydll avatar

Stargazers

 avatar

Watchers

 avatar

consolehangman's Issues

Add comments to code

I haven't added very many comments to the program.cs file. Let me fix that quick.

Need to add support for phrases

Words get boring. Let's spice it up with phrases and sentences!

We need to do the following:

  • refactor the "checkStringLettersOnly()" method to "checkPhrase()"
    • Make sure that the input string has at least one letter
    • Possibly move the method to the "Hangman" class
  • refactor the "updateState()" method
    • Add support for characters other than letters
      • Add a space between each character
      • If the character is a letter, replace with an underscore
  • General refactorings of "word" to "phrase"

I have already checked the HangmanDictionaryFileProcessor class and it seems it does not need any major refactorings, contrary to popular belief (A.K.A, Just me )

However, just about every class in the solution needs to change every occurrence of "Word" to "Phrase." Nothing a quick find and replace can't fix!

Implement Command line processing

The program needs to have command line processing to be fully functional. This should include the following.

  • Implement -i/-imageFile argument
    • set the imageFile to read from to argument after -i
  • Implement -d/-dictionaryFile
    • see above sub task
  • Implement -W/-Word argument
    • set the word to the argument, if any, after -W
    • if there is no argument, then set customWord to true
  • Implement Default argument
    • set word to argument with no token identifiers preceding it
    • if there is a -W argument, it should take priority over the default argument.
  • Check validity of arguments
    • Create objects using cmdline arguments (or defaults if none were provided)
      • If any of the objects created result in an exception, use default and show message describing the error
      • If any default objects fail to be created (excluding imageFiles, where a default will be hard coded), Display an error message and stop execution

This is a required issue for the Milestone: Release v1.0

Set it to 1.0

Release time!

(Just need to edit the version string and recompile it)

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.