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

test

parent bcf40063
Branches
Tags
No related merge requests found
...@@ -13,18 +13,17 @@ public class UniformExceptOneGenerator implements ColorGenerator { ...@@ -13,18 +13,17 @@ public class UniformExceptOneGenerator implements ColorGenerator {
public UniformExceptOneGenerator(Color uniformColor, Color exceptionColor){ public UniformExceptOneGenerator(Color uniformColor, Color exceptionColor){
this.uniformcolor =uniformColor; this.uniformcolor =uniformColor;
this.exeptioncolor = exceptionColor; this.exeptioncolor = exceptionColor;
this.appels += 1; this.appels += appels +1;
} }
@Override @Override
public Color nextColor(Cell cell) { public Color nextColor(Cell cell) {
UniformExceptOneGenerator u =new UniformExceptOneGenerator(uniformcolor,exeptioncolor); UniformExceptOneGenerator appel =new UniformExceptOneGenerator(uniformcolor,exeptioncolor);
if (u.appels==1){ if (appel.appels==1){
return this.uniformcolor; return this.uniformcolor;
} }
else if (u.appels>=2){ else {
return this.exeptioncolor;} 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