21 game: Difference between revisions

m
Line 2,751:
The main definition <tt>g21</tt> starts the game. J doesn't support niladic verbs. Although the <tt>y<tt> argument has no effect, it must be given. The empty literal vector <tt>''</tt> types quickly, hence often used to trigger niladic verbs.
<lang J>
g21=: summary@play@setup NB. ::('21: error termination'"_)
 
 
Line 2,832:
you won
</pre>
 
=={{header|Java}}==
Options for creating a game:
Anonymous user