Git Product home page Git Product logo

guess-number's Introduction

Guess Number or Letter Package

Example Game of Object Oriented Programming in Python - Package that choose a number o letter random and you have to guess what is the correct number or letter.

Installation

  1. The unique requirement that you need to have is python 3 running in you device.
  2. This package is available via pip
    pip install GuessNumberLetter
    
    https://pypi.org/project/GuessNumberLetter/

Usage

The main objective of this project is create an example of Object Oriented Programming in python and the basic way to create a package in python. The project consists in two classes:

  1. Guess Number: Python random choose a number from 1 to 1000 and you have to guess what is the number, this class has the next methods.
    • guess: Receive a int parameter and this method will return a text if your number is below, high or is the correct number.
    • change_guess: Method that does not receive a parameter and the action is change the random number.
    • get_answer: Method that does not receive a parameter, this method return the correct number.
  2. Guess Letter: Python random choose a letter and you have to guess what is the correct letter, this class has the next methods.
    • guess: Receive a string character, for example "w" and this method will return a text if your letter is below, high or is the correct number.
    • change_guess: Method that does not receive a parameter and the action is change the random letter.
    • get_answer: Method that does not receive a parameter, this method return the correct letter.

Licensing

Anyone could add code and improve the project. This project is handle by the GNU GENERAL PUBLIC LICENSE.

guess-number's People

Contributors

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