Skip to content

Instantly share code, notes, and snippets.

@Chronial
Created May 18, 2015 12:08
Show Gist options
  • Save Chronial/e091dc5deb9234a2a7a1 to your computer and use it in GitHub Desktop.
Save Chronial/e091dc5deb9234a2a7a1 to your computer and use it in GitHub Desktop.
coins.py
from itertools import product
alice = lambda x: x
bob = lambda x: not x
print(all(alice(a) == b or bob(b) == a
for a, b in product([True, False], repeat=2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment