package de.htwg.minesweeper.aview.tui;


import java.awt.event.ActionListener;
import java.util.Arrays;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
import java.util.Scanner;

//Using Command Prompt, allows user to start new game or to quit
public class TUI implements Observer {
	
	
	public void printConsole(){
		System.out.println("What would you like to do?"); //Prints to console
		System.out.println("1. Start New Game");		//Prints to console
		System.out.println("2. Quit");					//Prints to console
		System.out.println("Type 1 or 2 below.");	//Prints to console
	}
	
	public void printGoodby(){
		System.out.println("Thanks and Goodby!");
	}
	
	public void printTheAnswer(){
		System.out.println("Type: x,x | x is a number between 0 and 9(column, row)");
	}
	public void gameLost(){
		System.out.println("You lost the Game!");
	}

	public void printTheField(String filledField[][]){

		for(String[] row: filledField){
			for(String value: row){
				
				System.out.format("%-20s",value);
			}
		}
	}

	@Override
	public void update(Observable o, Object arg) {
		// TODO Auto-generated method stub
		
	}


	
}	

@@ -1078,16 +1078,249 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09%0D%0A%09public void playAgain() %7B%0D%0A%09%09System.out.println(%22Would you like to play again?%22);%0D%0A%09%09System.out.println(%22Input 1, if you would like to start a new game.%22);%0D%0A%09%09System.out.println(%22Input 2, if you would like to quit.%22);%0D%0A%09%7D%0D%0A%09%0D%0A%09%0D%0A
 %09@Overri

Update TUI.java