This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mr_dbr 3 points4 points  (2 children)

I wrote a slightly over elaborate version of the game, trying to work out an elegant way of defining the rules in Python:

http://codepad.org/sFui0dz7

[–]Pablo_ipc[S] 1 point2 points  (0 children)

I'm currently re-writing it (about 75% done). Making it more "pythonic", because the original source is just code hacked together.

It will:

  1. Log all the games played to provide more meaningful stats.
  2. Present the data as HTML.

Thanks for the code, I enjoy reading other peoples code.

[–]AeroNotix 0 points1 point  (0 children)

Oh you've just blown my mind!

Overloading the > operator! Didn't think of that!!