fix: minimax.cpp vector fix

This commit is contained in:
Panquesito7
2020-07-07 23:05:23 -05:00
parent 02b7d4a4d9
commit a6c3569346

View File

@@ -17,7 +17,7 @@
* @param scores saved numbers in vector
* @return if maximum or not
*/
int minimax(int depth, int node_index, bool is_max, std::vector<const int>* &scores,
int minimax(int depth, int node_index, bool is_max, const std::vector<int> &scores,
int height) {
if (depth == height) {
return scores[node_index];