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

question 6

parent b7ae98c6
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,9 @@ class TabletteChocolat:
def est_possible(self, i, j):
return (i,j) in list(self.coups_possibles())
def coupe(self, i, j):
return TabletteChocolat(self.m -i, self.n -j)
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