Bonjour,
J'ai construit une classe Test en java pour tester le jeu Othello , et ià la compilation j'ai les erreurs suivantes , que je ne comprend pas du tout!
Le code de TestOthello est :TestOthello.java:5: illegal start of expression
private static final int N=8;
^
TestOthello.java:6: illegal start of expression
private static final int CASE_VIDE=0;
^
TestOthello.java:7: illegal start of expression
private static final int JETON_NOIR=1;
^
TestOthello.java:8: illegal start of expression
private static final int JETON_BLANC=2;
^
TestOthello.java:9: illegal start of expression
private static final char [] etiquette ={'A','B','C','D','E','F','G','H
'};
^
TestOthello.java:10: illegal start of expression
private int [][] plateau;
^
TestOthello.java:13: illegal start of expression
public Othello()
^
7 errors
.... etc!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 public class Othello { public static void main(String[] args) { private static final int N=8; private static final int CASE_VIDE=0; private static final int JETON_NOIR=1; private static final int JETON_BLANC=2; private static final char [] etiquette ={'A','B','C','D','E','F','G','H'}; private int [][] plateau;
Merci !
ps: je travail sur Cygwin !
Partager