os.y (), pos.x (), life-> points [pos.y ()] [pos.x () ]. getT ());> tmp = click; = true; ();;
}
} if (event-> button () ==
&& life-> points [pos.y ()] [pos.x ()]. ​​getT () == EMPTYCELL)
{> setCell (pos, true); (life-> points [life-> tmp.getX ()] [life-> tmp.getY ()]. ​​getT () == BLUEKING)
{> refresh (); = false; = false; = RED; ();;
}
}
} (life-> frag (life-> tmp.getX (), life-> tmp.getY (), pos.y (), pos.x ()))
{> new_game (); = BLUE;;
}
}
{> refresh (); = false; = false; = BLUE;
}
}
}
{= false; = false; = BLUE;> refresh ();
}
}
}
}
} LifeWidget :: Draw_Cell (QPainter * painter, QBrush PenBrush, int pen_size, QBrush RectBrush, int x0, int y0, int size)
{> setRenderHint (QPainter :: Antialiasing);> setPen (QPen (PenBrush, pen_size, Qt :: SolidLine));> setBrush (RectBrush);> drawRect (x0, y0 , size, size);
} LifeWidget :: Draw_Ellipse (QPainter * painter, QBrush PenBrush, int pen_size, QBrush RectBrush, int x0, int y0, int size)
{> setRenderHint (QPainter :: Antialiasing);> setPen (QPen (PenBrush, pen_size, Qt :: SolidLine));> setBrush (RectBrush);> drawEllipse (x0, y0 , size, size);
} LifeWidget :: ai_low ()
{(player == RED)
{> insert_low (game, life-> points); max = game-> ai_Trees [0] -> rang; ii = 0; (size_t i = 0; i ai_Trees.size (); i + +)
{(game-> ai_Trees [i] -> rang> max)
{= i; = game-> ai_Trees [i] -> rang;
}
{> frag_king (game-> move_x, game-> move_y); = BLUE; ();;
} if (life-> frag_comp (game-> move_x, game-> move_y))
{= BLUE; ();;
} if (life-> move_ai_king (game-> move_x, game-> move_y))
{= BLUE; ();;
}
} = BLUE; ();
}
} LifeWidget :: ai_mid ()
{(player == RED)
{* i = 0; i ai_Trees.size (); i + +)
{(game-> ai_Trees [i] -> rang> maxI)
{= i; = game-> ai_Trees [i] -> rang;
}
{= BLUE; ();;
{= BLUE; ();;
} (size_t childs_sum (game-> ai_Trees.size ()...