Skip to content
Snippets Groups Projects
Commit d2173229 authored by rachida0001's avatar rachida0001
Browse files

question 10

parent 44356e74
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,18 @@ class TabletteChocolat:
return (i,j)
def jouer(m,n):
t = TabletteChocolat(m,n)
print(t)
(i,j) = t.demander_coup()
while True:
t = t.coupe(i,j)
if(t.m==1 and t.n==1):
print("perdu")
break
print(t)
(i,j) = t.demander_coup()
if __name__ == "__main__":
import doctest
doctest.testmod()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment