public class Game { public static void main(String[] args) { Player player = new Player(); Computer computer = new Computer(); // introduction to the game System.out.println("Hello and welcome to another show of Who Wants To Be a Millionaire"); System.out.println("Tonight we have a new contestan, hoping to get their hands on jackpot of ONE MILLION POUNDS"); System.out.println("There is just one problem. Between him and the money are sixteen questions"); System.out.println(""); System.out.println("Ok First i'll explain the prize breakdown"); System.out.println(""); System.out.println("> The first question is worth: £500"); System.out.println("> The second question is worth: £1,000"); System.out.println("> The third question is worth: £2,000"); System.out.println("> The fouth question is worth: £3,000"); System.out.println("> The fifth question is worth: £4,000 with a gurantee of atleast going home with this sum of money"); System.out.println("> The sixth question is worth: £5,000 "); System.out.println("> The seventh question is worth: £10,000"); System.out.println("> The eight question is worth: £15,000"); System.out.println("> The nineth question is worth: £18,000"); System.out.println("> The tenth question is worth: £23,000 with a gurantee of atleast going home with this sum of money"); System.out.println("> The eleveth question is worth: £28,000"); System.out.println("> The twevleth question is worth: £37,000"); System.out.println("> The thirteenth question is worth: £50,000"); System.out.println("> The fourteenth question is worth: £125,000"); System.out.println("> The fiftheenth question is worth: £250,000"); System.out.println("> The sixteenth question is worth: £1,000,000"); // beginning of the game System.out.println(""); System.out.println("Ok, lets begin."); // first question System.out.println(""); System.out.println("Question 1"); System.out.println(""); System.out.println("Ok here the first question for 500 pounds"); System.out.println("What is the captial of England?"); System.out.println("> Is it A: Paris?"); System.out.println("> Is it B: Washington DC?"); System.out.println("> Is it C: London?"); // correct answer to question System.out.println("> or is it D: Moscow?"); // User input boolean correctAnswer = true; while (correctAnswer == true) { String pAnswer = player.getUserInput("Enter a number"); String rAnswer = computer.checkAnswerQ1(pAnswer); if (rAnswer.equals("Incorrect")) { correctAnswer = false; System.out.println("THAT IS THE WRONG Answer. The answer you where looking for was:" + rAnswer); Stop stop = new Stop(); stop.stopProgram(); } } } }