-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAIN.java
29 lines (29 loc) · 1.08 KB
/
MAIN.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//---------------------------------------------------- Zain Zafar ----------------------------------------------------//
import java.util.Scanner;
public class MAIN{
public static void main(String[] args){
Scanner sknr = new Scanner(System.in);
char rep;
do{
char[][] dic = z.getDictionnaire();
char[] tirage = z.donnerTirage();
System.out.println(tirage);
System.out.print("Proposez un mot: ");
char[] input = sknr.next().toCharArray();
input= z.upperCase(input);
z.afficherComparaison(input,tirage);
System.out.println("Votre mot fait "+input.length+" lettres.");
if(!z.compareInputTirage
(input,tirage)){
System.out.println("--> Votre mot ne correspond pas au tirage.");
}
if(!z.compareInputDic(input, dic)){
System.out.println("--> Votre mot n'existe pas dans le dictionnaire.");
}
z.motsPlusLong(tirage, dic);
System.out.println("Rejouer? O/N");
rep = sknr.next().charAt(0);
}while (rep != 'n' && rep != 'N');
sknr.close();
}
}