Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^6: implementing a scrabble-esque game on Termux III and how best to create a main data structure

by Aldebaran (Curate)
on Dec 10, 2019 at 05:19 UTC ( [id://11109897]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    new mask is
    ffff00ffff
    ...
    ....g.....
    ....e.....
    ..........
    
  2. or download this
     sub score {
      my ( $bd, $hi, $pos, $old, $word ) = @_;
      my $len  = length $word;
    ...
      my $helper = ( $old & ~$mask ) =~ tr/\0/-/r;
      say "helper is $helper";
    say "$bd";
    
  3. or download this
    #!/usr/bin/perl
    
    use strict;    # multiplayer upwords
    ...
      ('n') x 5, ('o') x 7, ('p') x 3, ('q') x 1, ('r') x 5, ('s') x 6, ('
    +t') x 5,
      ('u') x 5, ('v') x 2, ('w') x 2, ('x') x 1, ('y') x 2, ('z') x 1;
    return @drawpile; }
    
  4. or download this
    $ ./2.1.pt.pl 
    abs is /home/bob/4.scripts/distro/2.1.pt.pl
    path1 is /home/bob/4.scripts/distro
    ...
      side => 9,
    }
    $
    
  5. or download this
    ...(same as above until)
      max_tiles => 7,
    ...
    Use of uninitialized value in multiplication (*) at ./2.1.pt.pl line 3
    +1.
    $
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109897]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found