AI <- function(warrior, memory) {
if(is.null(memory)) {
# set memory initial values here
}
# Modify the following section to be able to complete the tower
warrior$walk()
memory
}
play_epic(AI, tower = "beginner", warrior_name = "Euler")
Run the code above in your browser using DataLab