]> ruin.nu Git - icfp05.git/commitdiff
better cop
authorMichael Andreen <harv@ruin.nu>
Sat, 9 Jul 2005 23:24:17 +0000 (23:24 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 9 Jul 2005 23:24:17 +0000 (23:24 +0000)
copsrc/cop.cpp
robbersrc/robber.cpp

index 2a8002293094ddca3436f249487d2c9c25a9ac68..8434960aed079d7147727d8a96b6134aac5d4a30 100644 (file)
@@ -225,6 +225,7 @@ void Cop::sendPlan(){
                }
        }else{
                locations.push_back(_robberLocation);
+               locations.push_back(_robberLocation);
        }
        if (!_robberLocation.empty()){
                //cerr << "Robber found at " << _robberLocation << endl;
index b2a32d44a8081f90dfbac4691ea6312475911c2c..e800b6cd6ad6fc12ebdfdca61a4358b8b415f910 100644 (file)
@@ -64,7 +64,7 @@ string Robber::turn(){
                                        continue;
                                //list<string>::iterator i = l.begin();
                                //++i;
-                               banks.push(bank->second/(pow(l.size(),2.0)));
+                               banks.push(bank->second/(pow(l.size(),4.0)));
                        }
                }
                //sort(banks.begin(),banks.end(),greater<double>());