Coder Social home page Coder Social logo

word-guess-java's Introduction

Word-Guess

Java version of Presidential themed name guess game

Written in Java utilizing a simple CLI (command line interface)

Description

This Java app has command line interface for playing a hangman style game using the US President names as a word set.

Java features used

  1. packages
  2. instantiated classes
  3. private and public methods
  4. getters and setters
  5. Array Lists
  6. enum
  7. wrapper classes
  8. stream
  9. lambda expression
  10. regex
  11. terminal scanner command line interface

Game Format

  1. User is presented with a random presidential name to guess showing letters as underscores initially
  2. User can choose how many names to play between 1 and 44
    1. FYI - yes there have been 45 presidencies, but Grover Cleveland served in the 22nd and 24th presidency hence there have been 44 individuals
  3. User guess letter via keyboard - results revealed
    1. letter not in name
    2. letter in name - underscores replaced with letter
    3. letter already used - list of previously used letters shown
    4. letter in name and solved the word - message followed by next word
    5. repeat above until pool of presidential names exhausted.
    6. replay of the game will provide randomized order of names
  4. User presented with option to play again

Details:

Class Model

object-model

Demo GIF (shows abbreviated 2 word session)

word-guess-node-test

Getting Started

Third-Party/Custom libraries used

  1. none

Dependencies

  • Java IDE of your choice

Installing

  • use project packages com.example.wordapi and com.example.wordgame

Executing program

  • run App for main method entry point

Authors

Myles Carey [email protected]

Version History

  • 1.0 - Initial Release - Java version based of previous TypeScript/JavaScript version
  • 1.1 -

License

Acknowledgments

word-guess-java's People

Contributors

mylescarey2019 avatar

Watchers

James Cloos avatar  avatar

word-guess-java's Issues

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.