import java.util.*;
public class ArrTest {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[][] words = {
{"chair", "의자"},
{"computer", "컴퓨터"},
{"integer", "정수"}
};
for(int i = 0; i < words.length; i++) {
System.out.printf("Q%d. %s의 뜻은?: ", i + 1, words[i][0]);
String info = sc.nextLine();
int count = 0;
for(int j = 3; j > 0; j--) {
if(info.equals(words[i][1])) {
System.out.println("정답입니다 !");
break;
}
System.out.println("틀렸습니다. " + j + "번의 기회!");
info = sc.nextLine();
if(j == 1 && !info.equals(words[i][1])) {
System.out.println("Game Over!");
count++;
}
}
if(count == 1) {
break;
}
}
}
}