Coder Social home page Coder Social logo

jeu_pendu's Introduction

Circonstances to write this code:

As exercise for the sixth week in a python cours in which we are learning to use multiple files to store data and functions. We had to be able to open and close file throw an other. we are learning manage storing data from a main file and to extract it throw the data file. Of corse if the player's input is false an error message will be send.

PENDU game rules:

The user lance the program and insert her name.

The computer choice a word from data list which can contain from 4 to 8 letters.

The aim of the player is to found the word: He can insert only one letter for at least 8 times. her begining score is 8; If the letter is in the word the machine will give him her position and he keep the score else if the letter is not in the word he lost one time of choice his score decrease by 1.  

Ones one level acheived, the score is recorded and stored in scores file.

If the player play an other time the all ready score stored will be taken in acount.

Goals acheived:

Impove using string and dictionary 
Define and call functions using parameters
A better provide user's errors
Manage using multiple files
Manage storing data and extract it from differents files

jeu_pendu's People

Contributors

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