Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: implementing a scrabble-esque game on Termux III

by tybalt89 (Monsignor)
on Dec 03, 2019 at 08:43 UTC ( [id://11109582]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $newmask = ( $old ^ $word ) =~ tr/\0/\xff/cr;
        $flip and ( $board, $heights ) = flip $board, $heights;
    ...
        my $tiles = join '', @tiles;
        say "word is $word";
        $tiles =~ s/$_// for split //, $word & $newmask;
    
  2. or download this
        my $newmask = ( $old ^ $word ) =~ tr/\0/\xff/cr;
    
  3. or download this
        $flip and ( $board, $heights ) = flip $board, $heights;
        substr $board, $pos, length $word, $word;
    ...
        #say "new mask is $newmask"; # $newmask has unprintable characters
    +, use something like Data::Dump that will show them.
        substr $heights, $pos, length $highs,
          ( $highs & $newmask ) =~ tr/0-4/1-5/r | ( $highs & ~$newmask );
    
  4. or download this
        $flip and ( $board, $heights ) = flip $board, $heights;
        my $tiles = join '', @tiles;
        say "word is $word";
        $tiles =~ s/$_// for split //, $word & $newmask;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-19 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found