01shobitha / TTT

0 stars 0 forks source link

Use constants #1

Open chirathr opened 5 years ago

chirathr commented 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..

01shobitha commented 5 years ago

Done