(Untitled)

Apr 05, 2003 14:11

Okay. Now Let's play where there are 15 in one pile and 14 in the other. What would you like to do?

Leave a comment

Comments 4

r_transpose_p April 22 2003, 10:10:25 UTC
This game is called nim.
15 xor 14 == 3

remove one stone from the 15 pile

14 xor 14 == 0

second player SUCKS IT!

Reply

r_transpose_p April 22 2003, 10:13:48 UTC
Somewhere around here I have these really pretty visualizations of 3-row nim's "second player wins" space, from back when someone showed me the game, didn't tell me it was nim, and I hadn't figured out the xor trick.

a dumb-assed mathematically unsophisticated approach to nim, using alpha-beta pruning, and game-state hashing.

Reply

r_transpose_p April 22 2003, 10:17:48 UTC

... )

Reply

szkoda May 5 2003, 09:04:00 UTC
Beautiful.

Reply


Leave a comment

Up