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

question 11

parent d2173229
Branches
No related tags found
No related merge requests found
...@@ -50,6 +50,14 @@ class TabletteChocolat: ...@@ -50,6 +50,14 @@ class TabletteChocolat:
return (i,j) return (i,j)
def recursive_first_player_has_a_winning_strategy(self):
if(self.m ==1 or self.n==1):
return True
else :
False
def jouer(m,n): def jouer(m,n):
t = TabletteChocolat(m,n) t = TabletteChocolat(m,n)
print(t) print(t)
...@@ -65,3 +73,6 @@ def jouer(m,n): ...@@ -65,3 +73,6 @@ def jouer(m,n):
if __name__ == "__main__": if __name__ == "__main__":
import doctest import doctest
doctest.testmod() doctest.testmod()
jouer(3,4)
[(1,i) for i in range(7)]
\ 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