import java.util.Scanner;

public class Jouons {

  public static void main(String[] args){
      Modele jeu = new Modele(6,6);
      Vue vue = new Vue(jeu);
      System.out.println(vue);

      Scanner sc = new Scanner(System.in);
      int joueur = 1;
      while (!jeu.fin()) {
	  int col;
	  do {
	      System.out.print("Joueur " + joueur + "> " );
	      col = sc.nextInt();
	  }
	  while(!jeu.ajout(col, joueur));
	  System.out.println(vue);
	  joueur = joueur==1?2:1;
      }
  }
}
