td.mesClasses
Class Morpion

java.lang.Object
  extended by td.mesClasses.Morpion

public class Morpion
extends java.lang.Object


Constructor Summary
Morpion()
           
 
Method Summary
static void afficheGrille(int[][] t)
           
static void afficheJoueur(int joueur)
           
static void debug(int[][] t)
           
static boolean estCoupGagnant(int[][] t, int x, int y, int joueur)
           
static boolean estJoubable(int[][] t, int x, int y)
           
static boolean estPlein(int[][] t)
           
static void joue(int[][] t, int x, int y, int joueur)
           
static int joueurSuivant(int joueur)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Morpion

public Morpion()
Method Detail

afficheGrille

public static void afficheGrille(int[][] t)

afficheJoueur

public static void afficheJoueur(int joueur)

debug

public static void debug(int[][] t)

estCoupGagnant

public static boolean estCoupGagnant(int[][] t,
                                     int x,
                                     int y,
                                     int joueur)

estJoubable

public static boolean estJoubable(int[][] t,
                                  int x,
                                  int y)

estPlein

public static boolean estPlein(int[][] t)

joue

public static void joue(int[][] t,
                        int x,
                        int y,
                        int joueur)

joueurSuivant

public static int joueurSuivant(int joueur)