Coder Social home page Coder Social logo

hangman's Introduction

Hangman

The goal of this project was to create a CLI hangman game that imports 10,000 possible words and has a saving feature.

Functionality

  • Player is able to save the game at any point and load it from the start screen later
  • The game imports 10,000 words from a .txt file
  • The computer chooses a random word from the .txt file as the secret word
  • Player can guess if a letter is included in the secret word
  • Player loses if they take too many guesses

Screenshot

Win Screen Screen Shot

Play the live demo HERE!

Reflections After Completion

Hangman felt like an improvement from my last project. The easiest part was actually building the game. I feel like mastermind was pretty complex. In comparison, hangman isn't all that complicated.

The problem was trying to wrap my head around the saving and loading. The readings don't really show you many ways to save and load things. There is one example, but that example only shows a way to load up a new instance of something that has a bunch of parameters in its initialize method. I think I figured it out. However, I don't know if my loading method is as efficient and as elegant as it could possibly be. I am proud that I figured out how to make it work with both YAML and JSON. The syntax is almost exactly the same.

Object Oriented thinking is making much more sense now. It's not quite second nature, but it's much easier to conceptualize than it was before. However, these projects only need a few objects communicating with each other. I'm sure problems with dependencies will rear their heads once the projects increase in complexity.

hangman's People

Contributors

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