Skip to content
Snippets Groups Projects
Commit 23dbca4b authored by Guilielmo Lucie's avatar Guilielmo Lucie
Browse files

modification type de sortie de la fonction

parent 4961fc70
Branches origin/CD_evaluerPlateau
No related tags found
2 merge requests!14Origin/cd evaluer plateau,!8Origin/cd evaluer plateau
\begin{algorithme}
\fonction{evaluerPlateau}{p:Plateau}{Couleur,Couleur}
{nbBlancs,nbNoirs:\naturel\\pion: Pion\\ c:Couleur}
\fonction{evaluerPlateau}{p:\Plateau}{\Entier,\Entier}
{nbBlancs,nbNoirs:\naturel\\pion: \Pion\\ c:\Couleur}
{
\affecter {egalite} {FAUX}
\affecter {nbBlanc} {0}
......@@ -11,7 +11,7 @@
{
\pour{y}{1}{taille(p)}{1}
{
\sialors {non caseVide(p,position(x,y))}
\sialors {non (caseVide(p,position(x,y)))}
{ \affecter{pion}{obtenirPion(p,position(x,y))}
\affecter{c}{obtenirCouleur(pion)}
\sialorssinon {c=Blanc}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment