[Jprogramming] New 2048 game addon released

Ric Sherlock tikkanz at gmail.com
Tue Jun 21 21:16:03 UTC 2016


Thanks Brian. Your edit will be in the next release.

Cheers,

On Wed, Jun 22, 2016 at 7:06 AM, Brian Schott <schott.brian at gmail.com>
wrote:

> Ric,
>
> I really appreciate your coding and sharing this game.
> I especially have benefitted from studying the console version because it
> leaves the history on the screen and I can begin to understand the effects
> of the moves by reviewing the sequences of input/output pairs.
>
> So far I have also found that the following line in the verb newnum_g2048_
> can be abbreviated by not including the ,/ on the left.  But that is
> trivial and does not detract from the really clear script code.
>
>   num=. ,/ 2 4 {~ 0.1 > ?0   NB. 10% chance of 4
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


More information about the Programming mailing list