Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static char [][] RotationDroite (char [][] grilleJeu){
- char [][] grilleRotation;
- grilleRotation = new char [7][7] ;
- for (int i=0; i<=6; i++) {
- for ( int j=0 ; j<=6; j++) {
- grilleRotation [i][j] = grilleJeu [6-j][i];
- }
- }
- return grilleRotation;
- }
- public static char [][] RotationGauche (char [][] grilleJeu){
- char [][] grilleRotation;
- grilleRotation = new char [7][7] ;
- for (int i=0; i<=6; i++) {
- for ( int j=0 ; j<=6; j++) {
- grilleRotation [i][j] = grilleJeu [j][6-i];
- }
- }
- return grilleRotation;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement