Find Jobs
Hire Freelancers

Beginning Poker Program with Random Number Generator

$30-5000 USD

已取消
已发布将近 21 年前

$30-5000 USD

货到付款
1. Gather data on common poker hands, dealing 5 cards to create 10 hands in each deck and dealing 100 decks of cards to accumulate data. Initialize random number generator with a seed generated by a six-digit number (ex: 121280). Print out seed number used. 2. Use rand to generate a deck of cards by getting a random integer and saving it in deck[0][0] through deck[51][0]. At same time save an integer value in deck [0][1] through deck [51][1] using the counter value %13 (where the counter starts at 0 and stops after 51). This ensures that there are 52 cards with 4 zeroes, 4 ones, 4 twos, ..., 4 twelves contained in the second column of the deck matrix. 3. Use a sort function to shuffle or reorder each deck before dealing out the 10 hands. Pass matrix to sort function and reorder rows based on the integers in the first column. 4. Count number of hands that have following characteristic and print out how many of the 1000 hands had this characteristic: A hand with a consecutive run of 5 cards. ## Deliverables 1) Source code in C that works and accomplishes task. ## Platform Just in C code (not C++)
项目 ID: 2930884

关于此项目

远程项目
活跃15 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

的国旗
0.0
0
会员自5月 1, 2003起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。