); (size_t i = 0; i ai_Trees.size (); i + +) (size_t i = 0; i max)
{= i; = childs_sum [i];
} = game-> ai_Trees [ii]; (1)
} = BLUE; ();
}
} LifeWidget :: paintEvent (QPaintEvent */* event * /)
{p (this); (game_level == 1) ai_mid (); if (game_level == 0) ai_low (); (life-> game_over ())
{> new_game (); = BLUE;;
} (int i = 0; i Cell_King (i, j); (int i = 0; i
{(int j = 0; j
{((i + j) & 1)
{_Cell (& p, Qt :: black, 0, Qt :: gray, i * cellSize (), j * cellSize (), cellSize ()); (life-> points [j] [i]. getT () == RED)
{_Ellipse (& p, Qt :: black, 2, Qt :: red, i * cellSize () +5, j * cellSize () +5, cellSize () -10);
} if (life-> points [j] [i]. getT () == BLUE)
{_Ellipse (& p, Qt :: black, 2, Qt :: blue, i * cellSize () +5, j * cellSize () +5, cellSize () -10);
} if (life-> points [j] [i]. getT () == REDKING)
{_Ellipse (& p, Qt :: green, 4, Qt :: red, i * cellSize () +5, j * cellSize () +5, cellSize () -10);
} if (life-> points [j] [i]. getT () == BLUEKING)
{_Ellipse (& p, Qt :: green, 4, Qt :: blue, i * cellSize () +5, j * cellSize () +5, cellSize () -10);
}
} if (life-> points [j] [i]. getT () == WHITECELL)
{_Cell (& p, Qt :: black, 0, Qt :: white, i * cellSize (), j * cellSize (), cellSize ()); (int i = 0; i cell (QPoint (i, j) ) && (i + j) & 1)
{_Cell (& p, Qt :: yellow, 6, Qt :: gray, i * cellSize (), j * cellSize (), cellSize ()); (life-> points [j] [i]. getT () == RED)
{_Ellipse (& p, Qt :: black, 2, Qt :: red, i * cellSize () +5, j * cellSize () +5, cellSize () -10);
} if (life-> points [j] [i]. getT () == BLUE)
{_Ellipse (& p, Qt :: black, 2, Qt :: blue, i * cellSize () +5, j * cellSize () +5, cellSize () -10);
} if (life-> points [j] [i]. getT () == REDKING)
{_Ellipse (& p, Qt :: green, 4, Qt :: red, i * cellSize () +5, j * cellSize () +5, cellSize () -10);
} if (life-> points [j] [i]. getT () == BLUEKING)
{_Ellipse (& p, Qt :: green, 4, Qt :: blue, i * cellSize () +5, j * cellSize () +5, cellSize () -10);