Search:

Type: Posts; User: muffler

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    2,649

    Re: minimax for dot and box game

    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)...
  2. Replies
    5
    Views
    2,649

    Re: minimax for dot and box game

    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...
  3. Replies
    5
    Views
    2,649

    minimax for dot and box game

    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...
Results 1 to 3 of 3