[Jprogramming] Turkey Roll - Challenge 2 Rich Text
Kip Murray
km at math.uh.edu
Fri Dec 2 22:40:43 HKT 2011
I believe it is a subtle display/editing error. When you copy
>> toss =: (dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2 (#:i.6){'
>> o') {~ 2 10 ?@$ 6:
and edit out the backspace and >>'s you must leave a space in front of
the o so that you see ' o' not 'o' . Beware of line wrap above and below.
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|
+---+---+---+---+---+---+---+---+---+---+
On 12/2/2011 5:25 AM, Linda Alvord wrote:
> 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: programming-bounces at jsoftware.com
> [mailto:programming-bounces at jsoftware.com] 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
More information about the Programming
mailing list