Guest User

Deterministic Freecell Generator for Flying

a guest
Jul 24th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. import hashlib
  2. m = hashlib.md5()
  3. m.update(raw_input("Enter your Flight here \n"))
  4. s = int(m.hexdigest(), 16) % 1000000
  5. print "Your Freecell game this flight is #%i" % s
  6. quit = raw_input("Press any key to quit.")
  7.  
  8. """
  9. This is designed for the FreeCell program that comes in Windows, as it has 1,000,000 games total, whereas FreeCell itself has 1.75*10^64 deals. For any other FreeCell software that allows you to pick a game, you can simply replace the modulo value in s with the upper bound of the games it allows you to pick.
  10.  
  11. Thanks!
  12. """
Add Comment
Please, Sign In to add comment