letters=: ;@(-. {.)@,
combos=: ~./:~@>,{letters&.> a;b;c;d;e;<f
NB. part 1: words
10 {. combos
NB. part 2: cents
+/ #@~.@(((! A.&i.] )6) { ])"1 combos
Here is what I get. I seem to be missing something.
Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raul Miller
Sent: Sunday, June 03, 2012 12:17 PM
To: Programming forum
Subject: Re: [Jprogramming] Challenge 12 Spill 'n Spell, Compute 'n Tell
I think that any combination of letters which can be produced by the dice would
represent a potential word when considering the maximum possible number of
cents which you can receive.
--
Raul
On Sun, Jun 3, 2012 at 12:08 PM, Ric Sherlock <[email protected]> wrote:
> 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 <[email protected]> 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