you can make the head of Scrabble.pm portion a bit shorter...

#our letter values my %letter_values; @letter_values{qw/A E I L N O R S T U/} = 1; @letter_values{qw/D G/} = 2; @letter_values{qw/B C M P/} = 3; @letter_values{qw/F H V W Y/} = 4; @letter_values{qw/J K Q X Z/} = qw/8 5 10 8 10/; # Initialize Squares my @premium_squares = map { [(' ') x (15) ] } 1..15; # Triple Word @$_[0,7,14] = '3W' for @premium_squares[0,7,14]; # Double Word $premium_squares[$_][$_] = '2W' for 1..4,7,10..13; # Triple Letter @$_[5,9] = ('3L') x (2) for @premium_squares[5,9]; @$_[1,5,9,13] = ('3L') x (4) for @premium_squares[1,13]; # Double Letter @$_[3,11] = ('2L') x (2) for @premium_squares[0,7,14]; @$_[6,8] = ('2L') x (2) for @premium_squares[2,6,8,12]; @$_[2,6,8,12] = ('2L') x (4) for @premium_squares[6,8]; ## ...
there's more, but i thought this would get you started. i haven't had a chance to run it yet, but it looks like it could be fun.

~Particle *accelerates*


In reply to Re: Scrabble Game by particle
in thread Scrabble Game by Fideist11

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.