Created
March 7, 2013 21:21
-
-
Save Ram-N/5111903 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
store_iteration_stats<- function(iter, kNumSettlers, found.home, max.look.around) { | |
#how many settlers found homes | |
perSet <- (found.home/kNumSettlers) * 100 | |
print(c(found.home," settled out of ", kNumSettlers, perSet, "%" ) ) | |
#avg # of steps per new settler | |
print(c("num of Settlers who hit max look around:", max.look.around)) | |
return(c(iter, found.home, kNumSettlers, perSet)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment