format
This commit is contained in:
@ -421,8 +421,7 @@ std::pair<int, int> TotalRandomGuess() {
|
||||
}
|
||||
return std::make_pair(row, column);
|
||||
}
|
||||
inline double GetProb(double default_p,const std::vector<double> &ps)
|
||||
{
|
||||
inline double GetProb(double default_p, const std::vector<double> &ps) {
|
||||
if (ps.empty()) return default_p;
|
||||
double res = 0;
|
||||
const double v = 2;
|
||||
@ -482,7 +481,9 @@ std::pair<int, int> SimpleGuess() {
|
||||
for (int i = 0; i < rows; i++)
|
||||
for (int j = 0; j < columns; j++)
|
||||
if (map_status[i][j] == 0) {
|
||||
double current_prob=GetProb(default_probability,probability[best_guess.first][best_guess.second]);
|
||||
double current_prob =
|
||||
GetProb(default_probability,
|
||||
probability[best_guess.first][best_guess.second]);
|
||||
double this_prob = GetProb(default_probability, probability[i][j]);
|
||||
if (this_prob < current_prob) {
|
||||
best_guess.first = i;
|
||||
|
Reference in New Issue
Block a user