Class MRules

java.lang.Object
   |
   +----Rules
           |
           +----MRules

public class MRules
extends Rules
usage: MRules(String player1)
See if the move is ok and determine if the player can move again
 The way to call the rules method: verif replay move and win
 method(int bol, String player) for the server
 like this Rules can invert the table or not


Variable Index

 o tab
initialisation des variables

Constructor Index

 o MRules()
constructor

Method Index

 o m(int, int[])
move
 o msg(int, boolean)
message to send to this player
 o newGame()
init the board
 o r(int, int[])
return true if the player can replay
 o rtab(int[])
reverse the table
 o v(int, int[])
is this move valid?
 o w(int[])
win, loose , tie

Variables

 o tab
 public int tab[]
initialisation des variables

Constructors

 o MRules
 public MRules()
constructor

Methods

 o newGame
 public void newGame()
init the board

Overrides:
newGame in class Rules
 o m
 public int[] m(int bol,
                int ttab[])
move

Overrides:
m in class Rules
 o r
 public boolean r(int bol,
                  int ttab[])
return true if the player can replay

Overrides:
r in class Rules
 o w
 public int w(int ttab[])
win, loose , tie

Overrides:
w in class Rules
 o v
 public boolean v(int bol,
                  int ttab[])
is this move valid?

Overrides:
v in class Rules
 o rtab
 public int[] rtab(int stab[])
reverse the table

Overrides:
rtab in class Rules
 o msg
 public String msg(int bol,
                   boolean p)
message to send to this player

Overrides:
msg in class Rules