I try not to give too many clues to how to define your data in any problem. In this case, how the "make" the dice. You gave one way but there are likely to be others. How you create your data has a significant impact on the ease of your solution to the problem.
Linda -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Ric Sherlock Sent: Sunday, June 03, 2012 10:37 PM To: Program ming forum Subject: Re: [Jprogramming] Challenge 12 Spill 'n Spell, Compute 'n Tell Thanks for the clarifications. I understand that you want to represent the operations of 6 dice. I want to clarify whether the 2D, boxed structure is integral to the task. IOW is the "unstructurfication" of the dice intended as part of the challenge? Otherwise it would be simpler to jus t specify the 6 letters on each of the 6 dice. a=: 'TAIIDP' b=: 'SOCNLM' c=: 'AQRABZ' d=: 'JKUIEE' e=: 'HIFVWX' f=: 'EGEYEE' or even: dice=: _6]\ 'TAIIDPSOCNLMAQRABZJKUIEEHIFVWXEGEYEE' On Mon, Jun 4, 2012 at 1:52 PM, Linda Alvord <lindaalv...@verizon.net> wrote: > The structures are important. Consider die 1 and die 2. Possible > words with die 1 on the left will be different from die 2 on the left. > Once all possibilities are found, you must remove duplicate words. > > Words" are created from all 6 letters which can be spilled from a > handful of the dice. And once tossed, they can be arranged in any > order. I'd be surprised if you get many "real" words. Vowels and > consonants do not matter. > > Let me know if there are more issues you don't understand. > > Linda > > -----Original Message----- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Ric Sherlock > Sent: Sunday, June 03, 2012 12:08 PM > To: Programming forum > Subject: Re: [Jprogramming] Challenge 12 Spill 'n Spell, Compute 'n > Tell > > Hi Linda, > I'm a bit confused... > > Is the point to putting the letters onto a pattern for a dice just to > help represent the idea of choosing one of 6 letters at random to new > programmers or are we supposed to use these structures in our answers? > > What are the the rules for word formation? RIKPOG and MAAWEE don't > appear to be actual words so can the words be any combination of 6 > letters or do there have to be some combination of vowels and consonants? > > On Mon, Jun 4, 2012 at 3:20 AM, Linda Alvord <lindaalv...@verizon.net> > wrote: >> Challenge 12 Spill 'n Spell, Compute 'n Tell PLEASE DO NOT >> RESPOND UNTIL >> 6 /21/2012 12 am EST >> >> >> In 1974 I "drew" patterns for six cubes by hand, and then prepared an >> APL challenge that I "dittoed" and mailed to maybe 30 people who I >> knew who were using the language at that time. >> >> I think it was the only challenge which NO ONE answered. >> >> So here is the new revised J version which I will send to anyone on >> the planet who might be interested. Here are the same cubes with the >> same letters (facilitated by J): >> >> a=: (<"0) 4 3$' T AII D P ' >> b=: (<"0) 4 3$' S OCN L M ' >> c=: (<"0) 4 3$' A QRA B Z ' >> d=: (<"0) 4 3$' J KUI E E ' >> e=: (<"0) 4 3$' H IFV W X ' >> f=: (<"0) 4 3$' E GEY E E ' >> g=: (4 3$' ') >> (<a),(<b),(<c),,(<d),(<e),(<f) >> --------T-------T-------T-------T-------T-------┐ >> │--T-T-┐│--T-T-┐│--T-T-┐│--T-T-┐│--T-T-┐│--T-T-┐│ >> ││ │T│ │││ │S│ │││ │A│ │││ │J│ │││ │H│ │││ │E│ ││ >> │+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│ >> ││A│I│I│││O│C│N│││Q│R│A│││K│U│I│││I│F│V│││G│E│Y││ >> │+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│ >> ││ │D│ │││ │L│ │││ │B│ │││ │E│ │││ │W│ │││ │E│ ││ >> │+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│+-+-+-+│ >> ││ │P│ │││ │M│ │││ │Z│ │││ │E│ │││ │X│ │││ │E│ ││ >> │L-+-+--│L-+-+--│L-+-+--│L-+-+--│L-+-+--│L-+-+--│ >> L-------+-------+-------+-------+-------+-------- >> >> These are the patterns for six "dice". Each one shows the faces >> which if cut and folded would form a cube. >> >> Now consider rolling the dice and forming a word like: >> >> RIKPOG or MAAWEE >> >> (These were my original words and I liked MAAWEE so much I made a >> folder for all the odds 'n ends of mathematical stuff I didn't know >> what to do >> with.) >> >> First create a 10 6 shape of 10 unique words. (old version-make >> two >> words) >> >> Second part is to assume you receive 1 cent for each unique word >> you can create, how much can you possibly receive. (this part is >> new) >> >> 'til summer when time for play begins. >> >> Linda >> --------------------------------------------------------------------- >> - 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm