Giter Club home page Giter Club logo

lejusteprix's Introduction


Code style: black

FR - Le Juste Prix

Description

Ce premier projet est un jeu amusant pour les débutants connu de tous. Le programme génère un prix entier aléatoire dans une fourchette définie par l'utilisateur. Le but pour l’utilisateur est de deviner le prix. Chaque fois que l’utilisateur se trompe, l’ordinateur lui dit si c’est plus ou moins que le prix qu’il a donné. À chaque aide de l’ordinateur, le score final atteignable par le joueur baisse.

Au programme, vous apprendrez à saisir des entrées clavier par un utilisateur, créer des fonctions pour valider que le nombre entré est bien un nombre entier, comparer une variable de référence (le prix) avec une autre variable et de calculer la différence entre deux nombre.

Comment l'utiliser

Le projet a été développé avec Python 3.8.5 et ne nécessite aucune librairie particulière.

Remerciements

Merci au site Comment Coder (https://www.commentcoder.com/) pour ses idées de projets pour débutants dont ce projet est tiré.

ENG - The Price is Right

Description

This first project is a fun game for beginners that everyone knows. The program generates a random integer price within a user-defined range. The goal for the user is to guess the price. Each time the user is wrong, the computer tells him/her whether it is more or less than the price he/she the price he/she gave. With each help from the computer, the final score attainable by the player decreases.

In the programme, you will learn how to enter keyboard inputs by a user, create functions to validate that the number entered is a integer number, compare a reference variable (the price) with another variable and calculate the difference between two numbers.

How to use it

The project has been developed with Python 3.8.5 and does not require any particular library.

Acknowledgements

Thanks to the Comment Coder site (https://www.commentcoder.com/) for its ideas for projects for beginners from which this project is taken.

lejusteprix's People

Contributors

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