You are viewing a single comment's thread. Return to all comments →
The title should read "... Kayles". OEIS A002186 Sprague-Grundy values for the game of Kayles (octal games .77 and .771).
Hasekll excerpt
kayles = (==0) . foldl1 xor . map (grundy!!) grundy = map g [0..] where g 0 = 0 g n = mex n [grundy!!l `xor` grundy!!r | m<-[n-1,n-2],l<-[0..m`div`2],let r=m-l] mex n = minimum . ([1..n] \\)
Seems like cookies are disabled on this browser, please enable them to open this website
Game of Kyles
You are viewing a single comment's thread. Return to all comments →
The title should read "... Kayles". OEIS A002186 Sprague-Grundy values for the game of Kayles (octal games .77 and .771).
Hasekll excerpt