Very cool ideas.
I think that the gaming approach to learning is a really good way to increase
fluidity in the way that tools are used and fluidity is the foundation of
mastery (and its fun)
I had an idea to create a battleship style of game where a random selection of
1's would be placed in 10 10 $ 0 and the task was to select only the ones by
finding the left argument to { . You could do similar challenges with {:: or }
It would be great to have a 'Games and Puzzles' section in the J wiki. I was
going to say in the beginner's section, but I actually think that it would
appeal to everyone.
By the way
,~ i. 5 3
0 1 2
3 4 5
6 7 8
9 10 11
12 13 14
0 1 2
3 4 5
6 7 8
9 10 11
12 13 14
:-)
Cheers, bob
> On May 15, 2022, at 05:22, Joe Bogner <[email protected]> wrote:
>
> On Sat, May 14, 2022 at 10:51 PM Razetime <[email protected]> wrote:
>>
>> A nerdle style game seems very difficult to specify, since the resulting
>> data is often 2d.
>
>
> I was thinking initially the result would be scalar and would have a
> limited set of primitives. My kids play nerdle in their elementary
> school and I've played a few times, so I wasn't thinking of making it
> too challenging. Random aside: My 3rd grader was stumped when one of
> his friends used pro nerdle[1] to create a game with factorial (they
> hadn't learned that yet), so we wouldn't want to make it too hard for
> beginners.
>
> Back to the idea: There would be a limited set of primitives to start
> with. Maybe something like:
>
> Basic mode:
>
> - +, -, *, %
> - ( )
> - i. and /
>
> Build your own mode:
> Pick other operators like -:, +:, *:, >:, < or others within J
>
> Or, the problem would parse out the primitives used and then add in a
> few other random ones
>
> For example
>
> ```
> str =: '46 = 1 + +/ i. 10'
> ". str
> 1
> [ tokens =: ;: str
> +--+-+-+-+-+-+--+--+
> |46|=|1|+|+|/|i.|10|
> +--+-+-+-+-+-+--+--+
> # tokens
> 8
> ```
> Playground link[2]
>
>
> In this example, maybe we'd only show the user the 9 tokens (46 would
> count as '4' and '6') and some other J primitive
>
> I'll keep thinking about it and may try to build something
>
> I found a rust implementation of nerdle for the terminal that may be a
> starting point[3] for an implementation idea.
>
> Ed, I checked out incredible machine[4] and it looks like a fun
> concept too. I think it's beyond what I can build though :)... It
> spurred an idea of using something like scratch where someone fills in
> the missing programming step to complete a puzzle. Thanks for passing
> along!
>
> [1] - https://create.nerdlegame.com/create.html
> [2] -
> https://jsoftware.github.io/j-playground/bin/html2/#code=str%20%3D%3A%20'46%20%3D%201%20%2B%20%2B%2F%20i.%2010'%0Aassert%20(%22.%20str)%0A%5B%20tokens%20%3D%3A%20%3B%3A%20str%0A%23%20tokens%0A
> [3] - https://github.com/tylerthecoder/rustle
> [4] - https://www.myabandonware.com/game/the-incredible-machine-1mg/play-1mg
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm