Open chirathr opened 5 years ago
https://github.com/01shobitha/TTT/blob/964cc90ef68eeebc0ecf046c567f0cdcfc3504a3/src/game/TTT.java#L4
Instead of using user = 1, it's better to use a constant. Declare:
public static final EMPTY = 0; public static final PLAYER_1 = 1; public static final PLAYER_2 = 2;
etc..
Done
https://github.com/01shobitha/TTT/blob/964cc90ef68eeebc0ecf046c567f0cdcfc3504a3/src/game/TTT.java#L4
Instead of using user = 1, it's better to use a constant. Declare:
public static final EMPTY = 0; public static final PLAYER_1 = 1; public static final PLAYER_2 = 2;
etc..