Skip to content
Snippets Groups Projects
Commit eb7e0be9 authored by SAIDI Hatim's avatar SAIDI Hatim
Browse files

test

parent bcf40063
No related branches found
No related tags found
No related merge requests found
......@@ -13,18 +13,17 @@ public class UniformExceptOneGenerator implements ColorGenerator {
public UniformExceptOneGenerator(Color uniformColor, Color exceptionColor){
this.uniformcolor =uniformColor;
this.exeptioncolor = exceptionColor;
this.appels += 1;
this.appels += appels +1;
}
@Override
public Color nextColor(Cell cell) {
UniformExceptOneGenerator u =new UniformExceptOneGenerator(uniformcolor,exeptioncolor);
if (u.appels==1){
UniformExceptOneGenerator appel =new UniformExceptOneGenerator(uniformcolor,exeptioncolor);
if (appel.appels==1){
return this.uniformcolor;
}
else if (u.appels>=2){
else {
return this.exeptioncolor;}
return null;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment