The following is from my jijx window (beware of line wrap) ]dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2(#:i.6){' o' +---+---+---+---+---+---+ | |o |o |o o|o o|o o| | o | | o | | o |o o| | | o| o|o o|o o|o o| +---+---+---+---+---+---+
I copied dice =: (6 6 6#:12 145 157 185 197 215)<@:{"1 2 (#:i.6){' o' from your email, used Backspace to get it all on one line, put a ] at the front, and pressed Enter to get what you see at the top. JVERSION Engine: j701/2011-01-10/11:25 Library: 7.01.050 Platform: Win 32 Installer: j701a_win.exe InstallPath: c:/users/kip murray/j701 On 12/2/2011 9:18 AM, Linda Alvord wrote: > 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: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] 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: programming-boun...@jsoftware.com >> [mailto:programming-boun...@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 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm