formatting source-code for 153fb7b8a5

This commit is contained in:
github-actions
2020-05-30 04:02:09 +00:00
parent 92fe9495ec
commit 8a2de9842b
175 changed files with 1671 additions and 3460 deletions

View File

@@ -9,8 +9,7 @@ using std::min;
using std::vector;
int minimax(int depth, int node_index, bool is_max, vector<int> scores,
int height)
{
int height) {
if (depth == height)
return scores[node_index];
@@ -20,8 +19,7 @@ int minimax(int depth, int node_index, bool is_max, vector<int> scores,
return is_max ? max(v1, v2) : min(v1, v2);
}
int main()
{
int main() {
vector<int> scores = {90, 23, 6, 33, 21, 65, 123, 34423};
int height = log2(scores.size());