GithubHelp home page GithubHelp logo

isinerds / hangman-game Goto Github PK

View Code? Open in Web Editor NEW
5.0 0.0 1.0 1.15 MB

Hangman game implemented in C with Raylib. It offers single-player and two-player modes, along with a graph mode to visualize word relationships. Players can guess words, input their own words, and explore word connections.

License: MIT License

C 97.72% Makefile 2.28%
binary-tree c criterion hangman raylib-c trie

hangman-game's Introduction

hangman-game

Hangman Game

This project is a Hangman game developed in C using the Raylib library. The game offers three modes: single-player, two-player, and graph mode. Additionally, it provides the functionality to play using either the mouse or keyboard.

Game Principle

Hangman is a word guessing game where the player tries to guess a word by suggesting letters within a certain number of attempts. For each incorrect guess, a part of a hangman is drawn.

Modes

  • Single-Player Mode: The system selects a random word based on a chosen difficulty level, and the player tries to guess the word before reaching the maximum allowed attempts.
  • Two-Player Mode: Player 1 suggests a word for Player 2 to guess.
  • Graph Mode: Visualizes the game's word dictionary as a binary tree on a map. It allows the user to add or remove words and view the resulting graph.

Folder Structure

  • src/: Contains the main source code of the application.
  • assets/: Includes images and sounds used in the game.
  • tests/: Contains several tests to verify the application's logic.
  • external/: Generated folder for libraries and dependencies.
  • build/: Generated folder for build outputs.

Dependencies

This project relies on Raylib and raygui libraries for graphics and input handling. The Makefile is provided to automate various commands such as installing dependencies, compiling the project, running the application, or running tests.

Installation and Usage

-Install Dependencies:

make install_raylib && make install_raygui && make install_criterion

-Compile the Project:

make build

-Run the Application:

make run

-Run Tests:

make run_test

-Clean the test:

make clean_test

hangman-game's People

Contributors

amine-a11 avatar maha-houidi avatar sabermahjoub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

sabermahjoub

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.