Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Théo BOUTEMY
siam
Commits
fe59943f
Commit
fe59943f
authored
Jun 04, 2021
by
Pauline LEYRIT
Browse files
ok
parent
d5455caa
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
appli1.py
View file @
fe59943f
This diff is collapsed.
Click to expand it.
appli2.py
View file @
fe59943f
This diff is collapsed.
Click to expand it.
joueur.py
View file @
fe59943f
#auteur: Théo
from
numpy.random
import
randint
from
numpy.random
import
randint
from
numpy.random
import
choice
from
numpy.random
import
choice
from
abc
import
ABCMeta
,
abstractmethod
from
abc
import
ABCMeta
,
abstractmethod
...
...
pieces.py
View file @
fe59943f
#auteur : Théo
from
abc
import
ABCMeta
,
abstractmethod
from
abc
import
ABCMeta
,
abstractmethod
...
...
table_de_jeu.py
View file @
fe59943f
#auteur : Théo
from
pieces
import
Piece
,
Montagne
,
Animal
,
Elephant
,
Rhinoceros
from
pieces
import
Piece
,
Montagne
,
Animal
,
Elephant
,
Rhinoceros
from
joueur
import
Joueur
,
Theo
,
Pauline
,
IA
from
joueur
import
Joueur
,
Theo
,
Pauline
,
IA
...
...
test.py
View file @
fe59943f
#auteur: Théo
import
unittest
import
unittest
import
table_de_jeu
as
t
import
table_de_jeu
as
t
import
pieces
as
p
import
pieces
as
p
...
@@ -95,12 +97,6 @@ class TestAnimal(unittest.TestCase):
...
@@ -95,12 +97,6 @@ class TestAnimal(unittest.TestCase):
self
.
assertEqual
(
elephant2
.
coords
,
[
4
,
2
])
self
.
assertEqual
(
elephant2
.
coords
,
[
4
,
2
])
# def test_initialiserPlateau(self):
# for k in range(1, 4):
# self.assertEqual(table_jeu1.initialiserPlateau().table_jeu[2, k].car(),
# 'R') # test: initialiserPlateau place bien les rochers au centre de la table
# self.assertEqual(jeu.orientation(0, 1, 'O'), None) # la case est vide
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment