Classe Tower

This commit is contained in:
2025-10-16 11:56:58 +02:00
parent 2f3b2f3125
commit dde0cf6ee2
4 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package fr.iut_fbleau.AvalamTests ;
import fr.iut_fbleau.Avalam.Tower ;
import fr.iut_fbleau.Avalam.Color ;
/**
* La classe <code>TestPion</code>
*
* @version 1.0
* @author Aurélien
* Date : 16-10-25 ; 16-10-25
* Licence :
*/
public class TestTower {
public static void main(String[] args){
Tower t1 = new Tower(Color.RED);
Tower t2 = new Tower(Color.YELLOW);
System.out.println("Vérification données :");
System.out.println("RED = " + t1.getColor());
System.out.println("1 = " + t1.getHeight());
System.out.println("\nVérification empilement :");
t1.mergeTower(t2);
System.out.println("YELLOW = " + t1.getColor());
System.out.println("2 = " + t1.getHeight());
}
}