做个游戏登陆程序 求助游戏星力加盟代理

求一个用C#或者是JAVA写的程序! 关于21点棋牌游戏的详细开发代码! 急急急急急急急急急急急急急急急!一定要写的非常详细!哪些类是干什么的,每一块代码都要有一定的注释!21点游戏规则如下:大多数赌场使用6副牌或8副牌玩这种游戏,以防止“数牌点”,在你的模拟中使用两副牌(共104张)。只有2位参与者,你和庄家。游戏开始时每人得到两张牌,对于牌面为2~10的牌,点数和面数相同;对于为人脸(J、Q、K)的牌,点数为10;牌面为A的牌,点数为1或者11.游戏的目的是得到总数尽量接近21点的牌,不得超过(超过称“爆了”),并使你得到的总点数多于庄家。如果开始两张牌的总点数恰为21(A-10或A-人脸),称为21点,自动成为胜者(若你和庄家都得到21点,则为平局,你的赌注仍在台上)。靠21点赢时,付给你3赔2,即1.5赔1(1元赌注赢1.5元,且1元赌注仍保留)。如果你和庄家都未得到21点,你想要多少张牌就可以取多少张牌,一次一张,使总数尽量接近21点,如果你超过了21点,就输了,游戏结束。一旦你对牌的点数满意,你就“打住”,然后庄家按照下列规则取牌:当庄家牌地点数为17、18、19、20和21时,就打住。若庄家牌地点数小于或等于16,必然取牌。庄家总把A的点数记为11,除非这样使他或她爆了(这时A的点数记为1)。例如,庄家的A-6组合是17点,不是7点(庄家没有选择权),且庄家必须打住在17点上。而若庄家有A-4组合(15点),又拿了一张K,那么新的总点数是15,因为A回到点数1(使之不超过21点),庄家还要再取牌。如果庄家超过21点,你就赢了(赢赌注的钱,每1元赌注赢1元)。如果庄家的总点数超过你,你将输掉全部赌注。如果庄家和你的总点数相同,为平局(你不输也不赢)。赌场中这个游戏的刺激之处在于,庄家开始的两张牌一张明、一张暗,所以你不知道庄家牌地总点数,必须根据那张明牌赌一把。在这个项目模拟中你不用考虑这种情况,你需要做的是:用两幅牌做12次游戏,你可以有无限的赌资(不希望吗?),每次下赌2元。两副牌玩过一次后,用两幅新牌(104张)继续玩。这时记录你的得分(加或者减X元),然后下一幅牌从0开始。输出是12次游戏的12个结果,可以用平均数或总数决定你的总成绩。急急急急 急急 急急就i急就i急急急就i急i急就i急i就i急i急急就i急急就i急i急急!
淡涩ET91WI
甘蔗斗地主
为您推荐:
扫描下载二维码后使用快捷导航没有帐号?
查看: 10818|回复: 4
新人欢迎积分0 阅读权限30积分182精华0UID帖子金钱1079 威望0
Lv.3, 积分 182, 距离下一级还需 68 积分
UID帖子威望0 多玩草0 草
11:49:13 上传
已经百度试过很多方法 不开盒子直接打开客户端不行&&把盒子卸载 重新官网下载客户端也不行 无解啊
现在只能用腾讯官方游戏工具才能启动&&我靠&&这不是逼我用这个吗
11:49:13 上传
盒子用惯了 不想换啊
本帖最后由 我爱绿茶嗯 于
12:22 编辑
新人欢迎积分1 阅读权限40积分283精华0UID帖子金钱4109 威望0
Lv.4, 积分 283, 距离下一级还需 717 积分
UID帖子威望0 多玩草0 草
新人欢迎积分1 阅读权限40积分283精华0UID帖子金钱4109 威望0
Lv.4, 积分 283, 距离下一级还需 717 积分
UID帖子威望0 多玩草0 草
腾讯就这尿性
新人欢迎积分0 阅读权限30积分74精华0UID帖子金钱2305 威望0
Lv.3, 积分 74, 距离下一级还需 176 积分
UID帖子威望0 多玩草0 草
我说lz,你又是不知道TX的性格
需要金钱:1100
手机盒子客户端点击或扫描下载
Powered by查看: 2435|回复: 15
现在DM游戏登录器网络版求修改
阅读权限40
在线时间 小时
现在DM传奇基本都用网络登录器了,求大神们解密修改,都在&&这个网站上,求修改求虐~~~
阅读权限50
在线时间 小时
没人发布修改器吗
阅读权限20
在线时间 小时
同求·············
阅读权限40
在线时间 小时
同求啊!!!!!!!!!!!!!!!!!
阅读权限40
在线时间 小时
顶起啊&&大神们 求教啊
阅读权限20
在线时间 小时
阅读权限30
在线时间 小时
同求啊& & 、、、、、、、、、、、、、、
阅读权限20
在线时间 小时
定期啊啊 啊啊
阅读权限20
在线时间 小时
阅读权限40
在线时间 小时
阅读权限50
在线时间 小时
就是冲着单机这两个字才玩的,都联网了还玩个球
阅读权限50
在线时间 小时
同求·············
阅读权限70
在线时间 小时
很多人都想要阿,不知道會不會有人發布阿
阅读权限20
在线时间 小时
不知道會不會有人發布阿
阅读权限20
在线时间 小时
楼主发的好 跪求大神来拯救啊!!!
阅读权限30
在线时间 小时
现在我的这么打不开啊&&什么原因
Powered by【数据结构与算法分析1.2】编写一个程序求解字谜游戏问题 - 博客频道 - CSDN.NET
中华胡杨的专栏
分类:数据结构与算法分析
问题描述:输入是由一些字母和单词构成的二维数组,目标是找出字谜中的单词,这些单词可以是水平、垂直或沿对角线以任何方向放置。找出二维数组中所有的单词
写完这个程序,手都要断掉了,太TM麻烦了,而且效率很低,到底有多少个for循环,自己都数不清。
#include &iostream&
int compare(char *word1,char *word2){
int index1=0,index2=0;
while(word1[index1]&&word2[index2]){
if(word1[index1]&word2[index2])
else if(word1[index1]&word2[index2])
if(word1[index1])
void sort(char **direc,int m){
char* word1;
char* word2;
for(i =i&0;i--){
for(j = 0;j&i-1;j++){
word1 = direc[j];
word2 = direc[j+1];
if(compare(word1,word2)){
direc[j] = word2;
direc[j+1] = word1;
char **findOne(char **puzzle,int row,int col,int n,char **direct,int m,int index,int *returnSize){
char **res = (char **)malloc(sizeof(char*)*m);
int count = 0;
char head = puzzle[row][col];
int tmpRow,tmpC
int directI
for(dir = 1;dir&=8;dir++){
directIndex = 0;
switch (dir)
for(i = index;i&m&&direct[i][0]==i++){
while(direct[i][directIndex]&&tmpCol&n){
if(direct[i][directIndex]!=puzzle[tmpRow][tmpCol]){
directIndex++;
if(!direct[i][directIndex]){
res[count++] = direct[i];
for(i = index;i&m&&direct[i][0]==i++){
while(direct[i][directIndex]&&tmpCol&=0){
if(direct[i][directIndex]!=puzzle[tmpRow][tmpCol]){
directIndex++;
if(!direct[i][directIndex]){
res[count++] = direct[i];
for(i = index;i&m&&direct[i][0]==i++){
while(direct[i][directIndex]&&tmpRow&n){
if(direct[i][directIndex]!=puzzle[tmpRow][tmpCol]){
directIndex++;
if(!direct[i][directIndex]){
res[count++] = direct[i];
for(i = index;i&m&&direct[i][0]==i++){
while(direct[i][directIndex]&&tmpRow&=0){
if(direct[i][directIndex]!=puzzle[tmpRow][tmpCol]){
directIndex++;
if(!direct[i][directIndex]){
res[count++] = direct[i];
for(i = index;i&m&&direct[i][0]==i++){
while(direct[i][directIndex]&&tmpCol&n&&tmpRow&=0){
if(direct[i][directIndex]!=puzzle[tmpRow][tmpCol]){
directIndex++;
if(!direct[i][directIndex]){
res[count++] = direct[i];
for(i = index;i&m&&direct[i][0]==i++){
while(direct[i][directIndex]&&tmpCol&n&&tmpRow&n){
if(direct[i][directIndex]!=puzzle[tmpRow][tmpCol]){
directIndex++;
if(!direct[i][directIndex]){
res[count++] = direct[i];
for(i = index;i&m&&direct[i][0]==i++){
while(direct[i][directIndex]&&tmpCol&=0&&tmpRow&=0){
if(direct[i][directIndex]!=puzzle[tmpRow][tmpCol]){
directIndex++;
if(!direct[i][directIndex]){
res[count++] = direct[i];
for(i = index;i&m&&direct[i][0]==i++){
while(direct[i][directIndex]&&tmpCol&=0&&tmpRow&n){
if(direct[i][directIndex]!=puzzle[tmpRow][tmpCol]){
directIndex++;
if(!direct[i][directIndex]){
res[count++] = direct[i];
*returnSize = count;
char **findWord(char **puzzle,int n,char **direc,int m,int *returnSize){
char **res = (char **)malloc(sizeof(char *)*m);
int count = 0;
char hash[26];
char index;
sort(direc,m);
for(i = 0;i&26;i++)
hash[i] = -1;
for(i = 0;i&m;i++){
tmp = direc[i][0];
if(hash[tmp-'a']==-1)
hash[tmp-'a'] =
for(row = 0;row&n;row++){
for(col = 0;col&n;col++){
tmp = puzzle[row][col];
index = hash[tmp-'a'];
if(index==-1)
char **word = findOne(puzzle,row,col,n,direc,m,index,&size);
for(i = 0;i&i++)
res[count++] = word[i];
*returnSize = count;
int main(){
int n = 4;
char *puzzle[4];
char p1[4] = {'t','h','i','s'};
char p2[4] = {'w','a','t','s'};
char p3[4] = {'o','a','h','g'};
char p4[4] = {'f','g','d','t'};
puzzle[0] = p1;
puzzle[1] = p2;
puzzle[2] = p3;
puzzle[3] = p4;
char *s1 = "this";
char *s2 = "two";
char *s3 = "otw";
char *s4 = "fat";
char *s5 = "that";
char *s6 = "hello";
char *s7 = "fuck";
char *direc[7];
direc[0] = s1;
direc[1] = s2;
direc[2] = s3;
direc[3] = s4;
direc[4] = s5;
direc[5] = s6;
direc[6] = s7;
char ** res = findWord(puzzle,4,direc,7,&size);
for(i = 0;i&i++)
printf("%s\n",res[i]);
system("pause");
排名:第6562名
(4)(244)(14)(4)(13)(10)(5)(2)(2)(5)(12)(2)}

我要回帖

更多关于 求助游戏下载 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信