Coder Social home page Coder Social logo

hangman's Introduction

Hangman

[Easy] Completed Project From JetBrains Academy Python Developer Track

Project Link

About

Hangman is a popular yet grim puzzle game. A cruel computer hides a word from you, which you try to guess letter by letter. If you fail, you'll be “hanged”. If you win, you'll survive.

Learning Outcomes

With functions, loops, lists and other variables, this is a great project for Python basics. As a cherry on top, it even includes a random module.

Steps

  1. Welcome the user and print 'The game will be available soon.'
  2. Player will have one chance to guess the word. Learn how to use 'input' and 'if'.
  3. Randomly choose a word from the list.
  4. Enable hints in your game. Allow it to show the number of letters and the first three letters. Learn 'slicing'.
  5. Using a loop, extend the number of attempts to eight.
  6. The outcome of the game may be “fatal”: a feature that makes the game all the more exciting. Work on implementing this feature so that players don’t lose “lives” if they guess the letter correctly. Learn 'while' loop.
  7. Improve the game by handling different error cases. Repetition of a letter, entering words that are too long, or using non-Latin characters shouldn’t cost your player a life.
  8. Create a menu for your game so that players can replay it or exit.

hangman's People

Contributors

someshnarwade avatar ankitranjan9 avatar

Watchers

James Cloos avatar  avatar

Forkers

ankitranjan9

hangman'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.