Skip to content
/ hangman Public

Hangman game, in CLI using elixir and genserver.

License

Notifications You must be signed in to change notification settings

subpal/hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

Introduction

This is the Elixir implementation of the classic Hangman game. It uses genserver and supervisor for fault tolerance.

Requirements

  1. Elixir version - 1.6.1
  2. Mix
  3. Linux/ Windows Operating System

Instructions

  1. Clone the hangman repository.
  2. Open hangman/lib/loadfile.ex
  3. Edit parameter of Line 10, File.read(), to full location of words1.txt file according to path in your system.
  4. Get your terminal into the hangman directory.
  5. Get your terminal to full screen.
  6. Enter command iex -S mix, to compile the hangman game.
  7. Enter command Super.start_link to start the process.
  8. Now, the last Game.start.

Enjoy and have fun!

Development details

The project is divided into modules for different functionality.

There are three basic modules :-

  1. Hangman.Play : starts the game and uses functions of other necessary modules when required.
  2. Hangman.Profile : stores the profile information about players, scores and leaderboard.
  3. Hangman.Loadhangman : reads the file containing words and returns a random word.

Note: This is free to use and modify.

About

Hangman game, in CLI using elixir and genserver.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages