Set puzzle: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: alignged an "end" comment.) |
m (→{{header|REXX}}: changed some comments in the REXX section header.) |
||
Line 1,853: | Line 1,853: | ||
<br>pseudo-random numbers, and in addition, that starter seed may be dependent upon operating system factors, |
<br>pseudo-random numbers, and in addition, that starter seed may be dependent upon operating system factors, |
||
<br>hardware architecture, and other things like the (local) date and time-of-day, and other such variables. |
<br>hardware architecture, and other things like the (local) date and time-of-day, and other such variables. |
||
The algorithm is also not the same for all REXX implementations |
<br>The algorithm is also not the same for all REXX implementations. |
||
The particular set of cards dealt (show below) used Regina 3.90 under a Windows/XP environment. |
|||
<lang rexx>/*REXX program finds "sets" (solutions) for the SET puzzle (game). */ |
<lang rexx>/*REXX program finds "sets" (solutions) for the SET puzzle (game). */ |
||
parse arg game seed . /*get optional # cards to deal. */ |
parse arg game seed . /*get optional # cards to deal. */ |