Skip to content
Snippets Groups Projects
Commit 9d89da4f authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add coisas

parent 4f3b7f4b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -35,9 +35,9 @@ Lista Joga(Grafo g, Lista grupo){
for(No n = primeiroNoLista(coresFilhos); n; n = getSucessorNo(n)) {
Vertice v = (Vertice) getConteudo(n);
// TODO: tratar empates!
if((/*v->peso + */v->bonus) > (/*maior->peso + */maior->bonus)) {
if((v->bonus) > (maior->bonus)) {
maior = v;
} else if((/*v->peso + */v->bonus) == (/*maior->peso + */maior->bonus)) {
} else if((v->bonus) == (maior->bonus)) {
if(v->peso > maior->peso) {
maior = v;
}
......@@ -66,7 +66,7 @@ Lista Joga(Grafo g, Lista grupo){
// grafoParaDot(g, grupo, debug);
// }
// fclose(debug);
// ++counter;
++counter;
}
return jogadas;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment