Code Monkey home page Code Monkey logo

aicore_hangman's Introduction

Project Title - Hangman (AiCore)

Project aims to develop a digital clone of the popular word guessing game Hangman. The computer (in this eg) guesses a word and stores it in memory. It then iteratively asks whether the user guessed the word correctly or not.

Project File Structure

Each of the milestones are devided into seperate .py files

(1) milestone_2.py : Basic draft code that checks a user's input and checks if the input is a single alphabet

(2) milestone_3.py : Develops code from milestone_2.py however make sure that if the user's input is invalid then continue asking via an infinite loop. Organises the user input request and guess checking in two seperate functions

(3) milestone_4.py : Develops code from milestone_3 and gives an OOP structure. The main class is termed Hangman, it contains two methods: a) check_guess b) ask_for_input.

(4) milestone_5.py : Builds on code from milestone_4.py and adds an external function that runs the Hangman class seperately

Installation instructions

The .py files are further divided into seperate tasks that can run into seperate code cells in VSCode : https://code.visualstudio.com/docs/setup/windows

Usage instructions

You can run any of the tasks as seperate cells in VSCode with Jupyter Notebook extensions installed

You can choose your arguments by replaing the list on line 66 with your selection

Run the code by typing in the VSCode terminal python ./milestone_5.py

License information

MIT License

Special Cases

The following is used to special cases if

  1. A '' in the word : [Solution adopted] word.replace('', ' ')

aicore_hangman's People

Contributors

mahedeg-dev avatar

Watchers

Mahed Javed 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.