Skip to content

Object-Oriented console version of the classic Hangman game

Notifications You must be signed in to change notification settings

BorisDundakov/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

Screenshot from 2023-04-09 11-52-03

Object-Oriented console version of the classic Hangman game. The user is handled a word and has 'N' number of attempts to guess the word.

How to run

Prerequisites

  • postgresql installed and configured

  • postgresql table with the following credentials:

    (
        id integer NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 742 CACHE 1 ),
        word character varying(64) COLLATE pg_catalog."default",
        CONSTRAINT words_pkey PRIMARY KEY (id)
    )
    
    TABLESPACE pg_default;
    
    ALTER TABLE IF EXISTS public.words
        OWNER to postgres;
    

    Screenshot from 2023-04-09 12-41-07

  • psycopg installed

    pip install psycopg2
    

Starting the app

  1. Clone the repository
    git clone https://github.com/BorisDundakov/Hangman.git
  1. Start the game!
    /bin/python main.py

Current Version - Hangman 2.1

  • Implementation of OOP principles
  • Visual features and game rules depending on difficulty selected (displaying the word and the hanging man)
  • Hard difficulty implements a timer
  • Random word is selected from a PostgreSQL Database

Additional Information

About

Object-Oriented console version of the classic Hangman game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages