Golfier
Pascal LAFOURCADE 5 years ago
parent bc2817a9f0
commit dcf759441e

@ -1,12 +1,12 @@
#GESTION DIVERSE DE CARTE# # GESTION DIVERSE DE CARTE#
##CREATION DE CARTE ## CREATION DE CARTE
**CreationCarte(void):** Carte:Tableau(4,3) d'entiers **CreationCarte(void):** Carte:Tableau(4,3) d'entiers
**Entrées** : void **Entrées** : void
**Sortie** : Carte:Tableau(4,3) d'entiers **Sortie** : Carte:Tableau(4,3) d'entiers
### Début ### Début
@ -33,11 +33,11 @@
> > > >
> >**Coy2** <- entier entre 1 et 4; > >**Coy2** <- entier entre 1 et 4;
> >
> **fin tant que** > **fin tant que**
> >
> **Carte(Coy2,Cox2)** <- 2; > **Carte(Coy2,Cox2)** <- 2;
### FIN ### FIN
## ROTATION DE CARTE ## ROTATION DE CARTE
@ -49,13 +49,13 @@
### Début ### Début
> ###Variables locales > ###Variables locales
> >
> Inv:Tableau(3,3) d'entier <- [0,0,1;0,1,0;1,0,0]; > Inv:Tableau(3,3) d'entier <- [0,0,1;0,1,0;1,0,0];
> >
> --- > ---
> >
> Carte <- Carte * Inv; > Carte <- Carte * Inv;
> >
###FIN ###FIN
--- ---
@ -67,17 +67,17 @@
### Début ### Début
> ###Variables locales > ###Variables locales
> >
> Inv:Tableau(4,4)d'entiers <- [0,0,0,1;0,0,1,0;0,1,0,0;1,0,0,0]; > Inv:Tableau(4,4)d'entiers <- [0,0,0,1;0,0,1,0;0,1,0,0;1,0,0,0];
> >
> Carte2:Tableau(3,4) d'entiers; > Carte2:Tableau(3,4) d'entiers;
> >
> --- > ---
> >
> Cart2 <- Carte' * Inv; > Cart2 <- Carte' * Inv;
> >
> Carte <- Carte2'; > Carte <- Carte2';
> >
###FIN ###FIN
@ -92,19 +92,19 @@
###Debut### ###Debut###
>###Variables Locales >###Variables Locales
> Cox,Coy : entiers > Cox,Coy : entiers
> >
> xCercle,yCercle,xPoint,yPoint : entiers > xCercle,yCercle,xPoint,yPoint : entiers
> >
> --- > ---
> Cox <- 1 > Cox <- 1
> >
> Coy <- 1 > Coy <- 1
> >
> tant que 1 > tant que 1
> >
>>Si Cox == 4 alors >>Si Cox == 4 alors
>> >>
>>>Si Coy == 4 alors >>>Si Coy == 4 alors
>>> >>>
>>>>break; >>>>break;
>>> >>>
@ -138,6 +138,4 @@
> >
>Fin tant que >Fin tant que
### Fin ### Fin

Loading…
Cancel
Save