Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for a nice example: Grime's Dice #5

Closed
GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments
Closed

Suggestion for a nice example: Grime's Dice #5

GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Hi, here's a suggestion for a nice example using Grime's non-transitive dice, 
maybe you want to include something similar in the README? 

http://grime.s3-website-eu-west-1.amazonaws.com/

The idea behind Grime's dice is that you have three dice, red, blue, olive 
which win against each other in a cyclic way. (one beating the other in about 
5:7). When you have two dice of the same colour, they beat each other, too, but 
the other way 'round.

red   = Lea.fromVals(3,3,3,3,3,6)
blue  = Lea.fromVals(2,2,2,5,5,5)
olive = Lea.fromVals(1,4,4,4,4,4)

print(red > blue)
print(blue > olive)
print(olive > red)

print(red+red.clone() > blue+blue.clone())
...

Original issue reported on code.google.com by cnvo...@gmail.com on 10 Nov 2014 at 7:38

@GoogleCodeExporter
Copy link
Author

This is a great example, indeed!
However, a similar case is ALREADY in the Lea wiki "Examples" page. See 

https://code.google.com/p/lea/wiki/Examples#nontransitive_dice

Thank you anyway for the suggestion. Your modelling shows that you have 
perfectly grasp the Lea's concept!

Original comment by pde@n-side.com on 13 Nov 2014 at 9:10

@GoogleCodeExporter
Copy link
Author

I have added the link to Grime's page in the Lea wiki "Examples" page.

Original comment by pde@n-side.com on 14 Nov 2014 at 2:22

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant