Giter VIP home page Giter VIP logo

the-hangman-game's Introduction

The-Hangman-Game

The classic Hangman game implemented in the commandline. Made with Xcode. Currently supports macOS.

 +-----+     +-----+     +-----+
 |           |    \O/    |     X
 |           |     |     |    /|\
 |           |    / \    |    / \
 |           |           |
===         ===         ===

license release realease-date commits-since


Contents

Features

The classic hangman game!

  • Dynamic hangman graphics!

  • Four difficulties to choose from:

    • Easy (12 strikes, word length 9~15)

    • Medium (9 strikes, word length 7~11)

    • Hard (6 strikes, word length 5~9)

    • Paranoid (4 strikes, word length 3~6)

  • Online word base at https://random-word-api.herokuapp.com/home - never repeating! (well, almost)

  • Create an offline word base to enjoy the game offline! (Requires internet to initialize)

  • Integrated in terminal - simply enter hangman to play!

  • Customize your game! Decide what word length you want.

  • (Planned for v1.2.0) Earn achievements!

How to Play

  1. Download the latest release here.

  2. Open the disk image.

  3. Drag the executable file hangman into usr/local/bin directory (alias provided). You might need to open the bin folder and drag the executable into the window.

  4. Once it is in your bin folder, you will need to right-click the executable and select open to bypass Gatekeeper. I don't have an Apple developer certificate :(

  5. In your terminal, enter hangman.

  6. Enjoy!

Command Explanation

hangman - root command.

game - sub command. Starts a game of hangman.

  • --offline or -o - (optional flag) make the game offline.

wbase - sub command. Word base manipulation.

  • --init or -i - initialize offline word base.

  • --delete or -d - delete offline word base.

  • --reset or -r - reset offline word base (delete & initialize).

update - sub command. Update your hangman game.

Start an online game: hangman -g

Start an offline game: hangman -g -o

View help: hangman -h

If you cannot access Terminal

We recommend you to read this Guide on Terminal alternatives / removing restrictions on your Mac.

Technical Info

Build Environment: MacBook Air (M1 2020), Sonoma 14.4.1

Xcode Version: Version 15.3 (15E204a)

Clang Version: Apple clang version 15.0.0 (clang-1500.3.9.4)

Libraries Used:

Name Author Version
curl 8.7.1
JSON for Modern C++ Niels Lohmann 3.11.3
CLI11 2.4.1

Offline Data Path: ./.thehangmangame/ (relative to executable, usually stored in User/)

the-hangman-game's People

Contributors

mrmagic2020 avatar

Stargazers

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