Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Corentin MIMEAU
PolyDefense
Commits
d77caa10
Commit
d77caa10
authored
Dec 14, 2015
by
Corentin MIMEAU
Browse files
Comment
parent
b6174d93
Changes
1
Hide whitespace changes
Inline
Side-by-side
joueur.py
View file @
d77caa10
# -*- coding: utf-8 -*-
# Classe Joueur
# Représente un joueur
#
class
Joueur
:
def
__init__
(
self
)
:
...
...
@@ -8,12 +12,14 @@ class Joueur :
self
.
numero
=
1
###
demande du
nom du joueur
###
modifie le
nom du joueur
def
modifier_nom
(
self
,
n
):
self
.
nom
=
n
### modifie le numéro du joueur (1 ou 2)
def
modifier_numero
(
self
,
n
):
self
.
numero
=
n
### récupère le numéro du joueur (1 ou 2)
def
recuperer_numero
(
self
):
return
self
.
numero
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