Coder Social home page Coder Social logo

hangman's Introduction

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

hangman's People

Contributors

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