Anonymous user
Rock-paper-scissors: Difference between revisions
Updated first D entry
(Added C# solution.) |
(Updated first D entry) |
||
Line 1,121:
Choice getRandomChoice() /*nothrow*/ {
if (choiceFrequency[].
return uniform!Choice;
return order[choiceFrequency.dice].whatBeats;
Line 1,164:
Computer picked paper, scissors wins!
Your choice (empty to end game):</pre>
===Alternative Version===
This version is more similar to the functional solutions.
|