Anonymous user
21 game: Difference between revisions
m
→{{header|J}}
m (→{{header|J}}) |
|||
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
Line 2,832:
you won
</pre>
=={{header|Java}}==
Options for creating a game:
|