当我将minmax仅应用于我的connect4游戏时,它得到了正确的结果,直到深度7,当我应用修剪来增加深度时,它会得到错误的结果,我需要帮助来解决我的逻辑或实现有什么问题?
library(dplyr)
df %>%
group_by(Caller) %>%
summarise(last_three_mean = mean(tail(Total_Call, 3)),
last_three_sum = sum(tail(Total_Call, 3)))
# Caller last_three_mean last_three_sum
# <fctr> <dbl> <int>
#1 A 2.333333 7
#2 B 2.333333 7
#3 C 1.000000 3