Non-transitive dice: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 361: | Line 361: | ||
=={{header|J}}== |
=={{header|J}}== |
||
Implementation ( |
Implementation (rotations of results here are also solutions): |
||
<lang J>NB. unique list of all y faced dice |
<lang J>NB. unique list of all y faced dice |
||
udice=: {{ 1+~./:~"1 (#: ,@i.)y#y }} |
udice=: {{ 1+~./:~"1 (#: ,@i.)y#y }} |