科迪
so an example is the following, if the variables are:
%note this example is RANDOM, the outputs must be random to simulate a shuffled deck!!!
people = 5;
cardsDelt = 5; %note, this is a typical deal for a poker game...
isJokerIn = 0;
The outputs will be:
dealtDeck =
'qh' 'as' '5s' '2s' 'jd' 'ad' '5d' '9s' '7h' 'ah' '3c' '2d' 'ac' '8c' 'qd' 'kh' '5h' '4c' '3h' '10s' '6h' '8h' '10c' '4s' '8d'
%note, 5x5, where rows is amount of people and columns are amount of cards dealt...
deckLeftover =
'3s' '4h' '2c' '5c' 'qs' 'jh' 'kd' '2h' '9c' '10h' '9h' '6d' '7c' '7s' '8s' 'qc' 'js' '9d' '7d' 'ks' '6c' '6s' '3d' '10d' 'jc' '4d' 'kc'
Well I hope that everyone has fun with it! Thank you!
你所有的基地都属于我们
解决486
Project Euler:问题3,最大的主要因素
解决886
的前n项谐波级数求和
解决319
翻倍元素向量
解决4558
纸牌游戏
解决87
你喜欢你的老板吗?
解决511
你能打彩票吗?
解决42
Backslang,奇怪的是你用它在某个时间点上…
51解决者
找到模式行数矩阵的……
8日解决
连续数0 1之间的值
解决246
找到宝藏在MATLAB中央,发现社区如何帮助你!
选择一个网站
选择一个网站翻译内容,看到当地事件和提供。根据你的位置,我们建议您选择:。
你也可以从下面的列表中选择一个网站:
选择中国网站(中文或英文)最佳站点的性能。其他MathWorks国家网站不优化的访问你的位置。
联系你当地的办公室