Ric, I wonder how many  can create their results on an android phone?

 Thank you J teaLinda




Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------
From: Ric Sherlock <[email protected]>
Date: 10/14/18 8:56 PM (GMT-05:00)
To: Programming JForum <[email protected]>
Subject: Re: [Jprogramming] Shuffle and deal 4 bridge hands

I haven't followed this thread very closely so am not sure how useful the
following will be, but this Rosetta Code link may be of interest.
https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Frosettacode.org%2Fwiki%2FPlaying_cards%23J&amp;data=02%7C01%7C%7Cc5120c159c294cf4e03408d632391216%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636751618026834086&amp;sdata=TK7IpAnjHjKUDwY3f4LJKKDDmhgp%2Bs4PeEuYEc0aEvw%3D&amp;reserved=0

On Sun, Oct 14, 2018 at 12:47 PM Linda Alvord <[email protected]>
wrote:

>
> This should now work in most J environments.
>
> F=:52$'23456789TJQKA'
> S=:13#u: 9824 9829 9830 9827
> deck=:S,.F
> shuf=: 13 :'<"2|."2 y {~ /:~"1 (|.x)$?~*/|.x
>
> Save code above in a file and then run the script.
> Here's how it looks in android.
>
> 13 4 shuf deck
> ┌──┬──┬──┬──┐
> │♣A│♣J│♣K│♣9│
> │♣Q│♣6│♣T│♣3│
> │♦K│♣5│♣8│♦A│
> │♦T│♣4│♣7│♦J│
> │♦9│♣2│♦Q│♦8│
> │♦6│♦2│♦7│♥K│
> │♥A│♥Q│♦5│♥6│
> │♥T│♥J│♦4│♥3│
> │♥8│♥9│♦3│♠A│
> │♥7│♥4│♠Q│♠K│
> │♥5│♥2│♠T│♠9│
> │♠8│♠J│♠7│♠6│
> │♠5│♠2│♠3│♠4│
> └──┴──┴──┴──┘
>
> Linda
>
> Sent from my Verizon, Samsung Galaxy smartphone
> ----------------------------------------------------------------------
> For information about J forums see 
> https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Cc5120c159c294cf4e03408d632391216%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636751618026834086&amp;sdata=In7q5bs0lSGn%2BvFZlworBkEE1x8lIwRpK8rRSR4zDGw%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see 
https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Cc5120c159c294cf4e03408d632391216%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636751618026834086&amp;sdata=In7q5bs0lSGn%2BvFZlworBkEE1x8lIwRpK8rRSR4zDGw%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to