do {
//play randomly
int HorV, row, col;
HorV = Math.random() < 0.5 ? 0 : 1;
if (HorV == 0) { //Play horizontal Horizontal
row = (int) (Math.random()*(size+1));
col = (int)...
Type: Posts; User: muffler
do {
//play randomly
int HorV, row, col;
HorV = Math.random() < 0.5 ? 0 : 1;
if (HorV == 0) { //Play horizontal Horizontal
row = (int) (Math.random()*(size+1));
col = (int)...
so if i have this code
//While the game is active
while (!((msg[0] == GameSocket.CLOSING) || (msg[0] == GameSocket.GAME_OVER))) {
do {// want to change this to MINIMAX instead of random...
Hello all, new poster.
i need help with a dot and box game i am trying to do.
I understand how minimax works and understand how the tic-tac-toe process works but i cannot figure it out for the...