Compare commits
	
		
			13 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a4493e6248 | |||
| ff96ee96dd | |||
| 69b3234c15 | |||
| 70e3c4e9f3 | |||
| 
						 | 
					858284cfd7 | ||
| 
						 | 
					9af58e79de | ||
| 
						 | 
					222154c92a | ||
| 
						 | 
					4101373e00 | ||
| 
						 | 
					0089ea0255 | ||
| 
						 | 
					a504c0d558 | ||
| 
						 | 
					3a3f034d8b | ||
| 
						 | 
					f5538e7d51 | ||
| 
						 | 
					00b27dd241 | 
@@ -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
 | 
			
		||||
```
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
name = "calculmental"
 | 
			
		||||
							
								
								
									
										20
									
								
								calcul.py
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								calcul.py
									
									
									
									
									
								
							@@ -4,7 +4,7 @@
 | 
			
		||||
"""
 | 
			
		||||
Created on Wed Jun 27 18:50:20 2018
 | 
			
		||||
v0.3
 | 
			
		||||
@author: svnet
 | 
			
		||||
@author: @samuelvermeulen.pro
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
import random
 | 
			
		||||
@@ -15,8 +15,11 @@ os.system('clear') # On nettoye l'écran
 | 
			
		||||
score = 0
 | 
			
		||||
tour = 1
 | 
			
		||||
 | 
			
		||||
while tour <= 10:
 | 
			
		||||
    print("Votre Score est de ", score, " Points\n") # Affichage du score
 | 
			
		||||
ntour = input("nombre de tours ? ")
 | 
			
		||||
os.system('clear')
 | 
			
		||||
 | 
			
		||||
while tour <= int(ntour):
 | 
			
		||||
    print("Tour :", tour, "/", ntour) # Affichage tours
 | 
			
		||||
    # Tirage au sort des nombres et des opérandes
 | 
			
		||||
    a = random.randint(1,1000)
 | 
			
		||||
    b = random.randint(1,1000)
 | 
			
		||||
@@ -25,7 +28,7 @@ while tour <= 10:
 | 
			
		||||
        
 | 
			
		||||
    # 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')
 | 
			
		||||
@@ -47,7 +50,7 @@ while tour <= 10:
 | 
			
		||||
            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')
 | 
			
		||||
@@ -69,7 +72,7 @@ while tour <= 10:
 | 
			
		||||
            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')
 | 
			
		||||
@@ -91,7 +94,7 @@ while tour <= 10:
 | 
			
		||||
            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')
 | 
			
		||||
@@ -114,4 +117,5 @@ while tour <= 10:
 | 
			
		||||
            
 | 
			
		||||
    tour += 1 #Incrément tour
 | 
			
		||||
    
 | 
			
		||||
print("Partie terminée, vous avez marqué ", score, "point(s)") # Fin de Partie
 | 
			
		||||
print("Partie terminée, votre note est de", score, "/", ntour) # Fin de Partie
 | 
			
		||||
input("\n\rTouche ENTRÉE pour quitter")
 | 
			
		||||
 
 | 
			
		||||
@@ -1,32 +0,0 @@
 | 
			
		||||
Metadata-Version: 2.1
 | 
			
		||||
Name: calculmental-svnet
 | 
			
		||||
Version: 0.4.2
 | 
			
		||||
Summary: Jeu de calcul mental
 | 
			
		||||
Home-page: https://git.weblib.re/svnet/calculmental_python.git
 | 
			
		||||
Author: SVNET Libre
 | 
			
		||||
Author-email: svnet@weblib.re
 | 
			
		||||
License: UNKNOWN
 | 
			
		||||
Description: # calculmental_python
 | 
			
		||||
        
 | 
			
		||||
        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
 | 
			
		||||
        
 | 
			
		||||
        ## Utilisation
 | 
			
		||||
        
 | 
			
		||||
        Ce script est développé sous Python 3 et doit fonctionner certainement sous Python 2.
 | 
			
		||||
        
 | 
			
		||||
        ```
 | 
			
		||||
        # Si ce n'est déjà fait !!
 | 
			
		||||
        sudo apt-get install python3
 | 
			
		||||
        git clone https://git.weblib.re/svnet/calculmental_python.git
 | 
			
		||||
        ```
 | 
			
		||||
        
 | 
			
		||||
        ```
 | 
			
		||||
        cd calculmental_python
 | 
			
		||||
        ./calcul.py
 | 
			
		||||
        ```
 | 
			
		||||
Platform: UNKNOWN
 | 
			
		||||
Classifier: Programming Language :: Python :: 3
 | 
			
		||||
Classifier: License :: OSI Approved :: MIT License
 | 
			
		||||
Classifier: Operating System :: OS Independent
 | 
			
		||||
Requires-Python: >=3.6
 | 
			
		||||
Description-Content-Type: text/markdown
 | 
			
		||||
@@ -1,6 +0,0 @@
 | 
			
		||||
README.md
 | 
			
		||||
setup.py
 | 
			
		||||
calculmental_svnet.egg-info/PKG-INFO
 | 
			
		||||
calculmental_svnet.egg-info/SOURCES.txt
 | 
			
		||||
calculmental_svnet.egg-info/dependency_links.txt
 | 
			
		||||
calculmental_svnet.egg-info/top_level.txt
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
 | 
			
		||||
@@ -1 +0,0 @@
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								dist/calculmental-svnet-0.4.2.tar.gz
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/calculmental-svnet-0.4.2.tar.gz
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								dist/calculmental_svnet-0.4.2-py3-none-any.whl
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/calculmental_svnet-0.4.2-py3-none-any.whl
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										22
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								setup.py
									
									
									
									
									
								
							@@ -1,22 +0,0 @@
 | 
			
		||||
import setuptools
 | 
			
		||||
 | 
			
		||||
with open("README.md", "r") as fh:
 | 
			
		||||
    long_description = fh.read()
 | 
			
		||||
 | 
			
		||||
setuptools.setup(
 | 
			
		||||
    name="calculmental-svnet",
 | 
			
		||||
    version="0.4.2",
 | 
			
		||||
    author="SVNET Libre",
 | 
			
		||||
    author_email="svnet@weblib.re",
 | 
			
		||||
    description="Jeu de calcul mental",
 | 
			
		||||
    long_description=long_description,
 | 
			
		||||
    long_description_content_type="text/markdown",
 | 
			
		||||
    url="https://git.weblib.re/svnet/calculmental_python.git",
 | 
			
		||||
    packages=setuptools.find_packages(),
 | 
			
		||||
    classifiers=[
 | 
			
		||||
        "Programming Language :: Python :: 3",
 | 
			
		||||
        "License :: OSI Approved :: MIT License",
 | 
			
		||||
        "Operating System :: OS Independent",
 | 
			
		||||
    ],
 | 
			
		||||
    python_requires='>=3.6',
 | 
			
		||||
)
 | 
			
		||||
		Reference in New Issue
	
	Block a user