Add: Project-Pendu

This commit is contained in:
2025-10-08 10:36:10 +02:00
parent 61ce49eabc
commit 05a85124e0
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
public class Lettre{
private char lettre;
private boolean status = false;
public Lettre(char lettre){
this.lettre = lettre;
}
/* Status bool */
private boolean getStatus(){
return status
}
private boolean isGood(char c){
if( this.lettre == c){
this.status = true;
return true;
}
return false;
}
}

View File

@@ -0,0 +1,22 @@
import java.util.*;
public class Mot {
public String mot;
public Lettre[] chaine;
public Mot(String mot){
this.mot = mot;
for(int i = 0; i< this.mot.length();i++){
this.chaine[i] = Lettre(this.mot.charAt(i))
}
}
}