When I enter the line that looks right, in j7 it does this.
dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2
(#:i.6){' o'
|spelling error
| dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2
(#:i.6){' o'
| ^
Am I doing something wrong.
Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Aai
Sent: Friday, December 02, 2011 6:58 AM
To: Programming forum
Subject: Re: [Jprogramming] Turkey Roll - Challenge 2 Rich Text
dice is only this part
dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2 (#:i.6){' o'
^
|
also think of a space-----------------------------------+
and then:
toss=: dice {~ 2 10 ?@$6:
toss''
Hallo Linda Alvord, je schreef op 02-12-11 12:25:
> I'm still stuck with getting this to run in j701jhs . At least I can get
> the whole line to run before it gives an error:
>
> dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2 (#:i.6){'o') {~ 2 10
?@$
> 6:
> |spelling error
> | toss =:
> (dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2 (#:i.6){'o') {~ 2 10 ?@$
6:
> | ^
>
> Linda
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Kip Murray
> Sent: Friday, December 02, 2011 2:39 AM
> To: Programming forum
> Subject: Re: [Jprogramming] Turkey Roll - Challenge 2 Rich Text
>
> I'll try not to hurt you, Henry. While you are not looking I'll replace
> <@:{ by ([:< {) and ?@$ by ([: ? $) . It works! A truly remarkable
> one-liner. Greetings from Kip
>
> On 12/1/2011 6:00 PM, Henry Rich wrote:
>> toss =: (dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2 (#:i.6){'
>> o') {~ 2 10 ?@$ 6:
>> toss''
>> +---+---+---+---+---+---+---+---+---+---+
>> |o o|o o|o |o o|o o|o |o | |o o|o o|
>> | | o | |o o| o | o | | o | | |
>> |o o|o o| o|o o|o o| o| o| |o o|o o|
>> +---+---+---+---+---+---+---+---+---+---+
>> |o o|o |o o|o |o |o o|o |o o| |o o|
>> |o o| o |o o| o | |o o| |o o| o |o o|
>> |o o| o|o o| o| o|o o| o|o o| |o o|
>> +---+---+---+---+---+---+---+---+---+---+
>>
>> Henry Rich, whose @ will be pried from his cold dead fingers
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
--
Met vriendelijke groet,
@@i=Arie Groeneveld
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm