Compare commits
	
		
			4 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a4493e6248 | |||
| ff96ee96dd | |||
| 69b3234c15 | |||
| 70e3c4e9f3 | 
@@ -1,4 +1,4 @@
 | 
			
		||||
# calculmental_python
 | 
			
		||||
# calcpymental
 | 
			
		||||
 | 
			
		||||
Faites travailler vos neurones. Petit jeu de calcul mental simple programmé en python inspiré de mon premier programme réalisé à l'époque en Basic sur Amstrad CPC 6128
 | 
			
		||||
 | 
			
		||||
@@ -9,10 +9,10 @@ Ce script est développé sous Python 3 et doit fonctionner certainement sous Py
 | 
			
		||||
```
 | 
			
		||||
# Si ce n'est déjà fait !!
 | 
			
		||||
sudo apt-get install python3
 | 
			
		||||
git clone https://git.weblib.re/svnet/calculmental_python.git
 | 
			
		||||
git clone https://git.vermeulen.pro/PYTHON/calcpymental
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
cd calculmental_python
 | 
			
		||||
cd calcpymental
 | 
			
		||||
./calcul.py
 | 
			
		||||
```
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								calcul.py
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								calcul.py
									
									
									
									
									
								
							@@ -4,7 +4,7 @@
 | 
			
		||||
"""
 | 
			
		||||
Created on Wed Jun 27 18:50:20 2018
 | 
			
		||||
v0.3
 | 
			
		||||
@author: svnet
 | 
			
		||||
@author: @samuelvermeulen.pro
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
import random
 | 
			
		||||
@@ -28,7 +28,7 @@ while tour <= int(ntour):
 | 
			
		||||
        
 | 
			
		||||
    # On pose l'opération
 | 
			
		||||
    if op == 1:
 | 
			
		||||
        print("Combien font ", a, " + ", b, " = ")
 | 
			
		||||
        print("Combien font ", a, " + ", b, " = ", end = " ")
 | 
			
		||||
        resultat = input()
 | 
			
		||||
        if resultat == "q": #Quitter
 | 
			
		||||
            os.system('clear')
 | 
			
		||||
@@ -50,7 +50,7 @@ while tour <= int(ntour):
 | 
			
		||||
            os.system('clear')
 | 
			
		||||
            
 | 
			
		||||
    if op == 2:
 | 
			
		||||
        print("Combien font ", a, " - ", b, " = ")
 | 
			
		||||
        print("Combien font ", a, " - ", b, " = ", end = " ")
 | 
			
		||||
        resultat = input()
 | 
			
		||||
        if resultat == "q": #Quitter
 | 
			
		||||
            os.system('clear')
 | 
			
		||||
@@ -72,7 +72,7 @@ while tour <= int(ntour):
 | 
			
		||||
            os.system('clear')
 | 
			
		||||
            
 | 
			
		||||
    if op == 3:
 | 
			
		||||
        print("Combien font ", a, " X ", b, " = ")
 | 
			
		||||
        print("Combien font ", a, " X ", b, " = ", end = " ")
 | 
			
		||||
        resultat = input()
 | 
			
		||||
        if resultat == "q": #Quitter
 | 
			
		||||
            os.system('clear')
 | 
			
		||||
@@ -94,7 +94,7 @@ while tour <= int(ntour):
 | 
			
		||||
            os.system('clear')
 | 
			
		||||
            
 | 
			
		||||
    if op == 4:
 | 
			
		||||
        print("Combien font ", a, " ÷ ", b, " = (donnez l'entier)")
 | 
			
		||||
        print("Combien font ", a, " ÷ ", b, " = (donnez l'entier)", end = " ")
 | 
			
		||||
        resultat = input()
 | 
			
		||||
        if resultat == "q": #Quitter
 | 
			
		||||
            os.system('clear')
 | 
			
		||||
@@ -118,4 +118,4 @@ while tour <= int(ntour):
 | 
			
		||||
    tour += 1 #Incrément tour
 | 
			
		||||
    
 | 
			
		||||
print("Partie terminée, votre note est de", score, "/", ntour) # Fin de Partie
 | 
			
		||||
input("\n\rTouche ENTRÉE pour quitter")
 | 
			
		||||
input("\n\rTouche ENTRÉE pour quitter")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user