Commit 4e8b0b2b authored by Quentin BILLAUD's avatar Quentin BILLAUD
Browse files

Ajout des nouvelles fonction dans algo.py

parent 4befd350
......@@ -30,7 +30,7 @@ from Cube import Cube
from lire_entree import lecture_cube
from utils import croix_valide, ftl_valide, cfop_valide
from test import tableaux_test
from stats import moyenne
from stats import moyenne,ecart_type
def algo_cfop(c):
......@@ -1044,6 +1044,17 @@ if __name__ == '__main__':
TermColors.end + '\n'
)
print('\n' + TermColors.bold + 'Ecarts types :' + TermColors.end)
print('☞ Croix :', round(ecart_type(listeMoyenne[0]), 2))
print('☞ FTL :', round(ecart_type(listeMoyenne[1]), 2))
print('☞ OLL :', round(ecart_type(listeMoyenne[2]), 2))
print('☞ PLL :', round(ecart_type(listeMoyenne[3]), 2))
print(
'☞ ' + TermColors.bold + 'Total :',
round(ecart_type(listeMoyenne[4]), 2),
TermColors.end + '\n'
)
#Tests insolvabilité
#Voir http://jeays.net/rubiks.htm#unsolvable
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment