siggame / MegaMinerAI-13

MegaMinerAI-13: Droids
1 stars 5 forks source link

CheckWinner Function UPDATE #23

Closed russleyshaw closed 10 years ago

russleyshaw commented 10 years ago

The check winner function should be updated to fit the new codegen.

There shouldn't be much logical changes, just changes in referencing.

scj7t4 commented 10 years ago

Looks like this isn't being detected correctly still.

GLOG from game where player 1 (vs player 0) loses his base and doesn't win: https://www.dropbox.com/s/zak4i74vvpofjjl/Player1NOLOSE.gamelog

KendallHarter commented 10 years ago

Fixed this; error was that it was checking every unit, not just the hangars.

scj7t4 commented 10 years ago

Another Problem >.>

Match where Player 1 (LHS) loses more of his hangers than Player 2 (RHS) but still wins with win reason

You win!
Player 1 wins because both are equally matched.

Player 1 has 3 hangar tiles left: ~114, 14, 180 hp respectively Player 2 has 5 all with health > 100.

Glog: https://www.dropbox.com/s/albkm9xgq40urdh/WrongWinner.gamelog

(Also, this was a very exciting rubber-bandy fight)

KendallHarter commented 10 years ago

Whoops, didn't even notice that code; fixed it now.