Commit 970ebe62 authored by Jimmy DORE's avatar Jimmy DORE
Browse files

Ajout d'une fonction split permettant d'afficher le patron du cube et l'image...

Ajout d'une fonction split permettant d'afficher le patron du cube et l'image de la rotation cote a cote
parent a71c4704
def splitCubeImg(cube,imgRot):
cubeSplit = cube.split("\n")
imgSplit = imgRot.split("\n")
sizeCube = len(cubeSplit)
sizeImg = len(imgSplit)
strImg = ""
for i in range(0,max(sizeCube,sizeImg)):
if i > sizeCube and i > sizeImg:
pass
elif i > sizeCube:
strImg += imgSplit[i] + "\n"
elif i > sizeImg:
strImg += cubeSplit[i] + "\n")
else:
strImg += imgSplit[i]
strImg += cubeSplit[i] + "\n"
return strImg
def img_B():
imgStr = ""
imgStr+=(" __________\n");
......
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