登录
首页 » Chess Poker games » 1、对输入的要求 玩家手中可以有2-5张牌(玩家自己输入多少张牌)。牌点为2-10的每张牌都分别计为相应的点数。花牌(J,K,Q)都算10点。目标是尽可能...

1、对输入的要求 玩家手中可以有2-5张牌(玩家自己输入多少张牌)。牌点为2-10的每张牌都分别计为相应的点数。花牌(J,K,Q)都算10点。目标是尽可能...

于 2023-06-19 发布 文件大小:3.67 kB
0 98
下载积分: 2 下载次数: 1

代码说明:

1、对输入的要求 玩家手中可以有2-5张牌(玩家自己输入多少张牌)。牌点为2-10的每张牌都分别计为相应的点数。花牌(J,K,Q)都算10点。目标是尽可能接近21点,但不要超过21点。所以,任何超过21点的点数都表示这一手牌已经“爆”了。A既可以计为1点,也可以计为11点,要选择对玩家来说最有利的一个点数。例如,1张A和1张10可计为11点或21点,但由于21点更好,所以这一手牌要算成21点。1张A和2张8可计为17点或者27点,由于27点已经“爆”了,所以这一手牌要算成17点。 程序首先询问玩家手上有几张牌,玩家输入2,3,4或者5。然后询问玩家每张牌的点数。点数可为2-10,J,K,Q和A。2-9的值分别作为字符‘2’-‘9’来输入。10,J, Q, K和A等值分别作为字符‘t’,‘j’,‘q’,‘k’和‘a’来输入(当然,玩家不需要输入单引号); 2、对输出的要求: 可以让玩家更清楚的知道他下一步应该怎么做 3、程序所能达到的功能 能够计算出所有牌的点数 之和,而且能够帮你处理好那张牌对 你的牌点之和更有利。-Blackjack

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 站程序
    本程序可以进行单机五子棋或通过网络进行比赛,发送和接收的信息均是一个字符串,共五位数;第一位数表示棋子颜色,1代表黑棋,2代表白棋;第二三位数表示棋子所在的行;第四五位数表示棋子所在的列。-the procedures for stand-alone 331 or via the Internet games, send and receive messages is a string, a total of five; Chessman said the median first color, a black chess representatives, two representatives of black pieces; Cap said the median where the pawn; Chessman said the median No.450 where the series.
    2022-07-09 20:01:52下载
    积分:1
  • VB版(五子棋)
    VB版(五子棋)-version of VB (331)
    2022-01-26 00:33:14下载
    积分:1
  • 方块游戏,VB开发。原代码.A good game
    方块游戏,VB开发。原代码.A good game-Game box, VB development. The original code. A good game
    2022-03-20 12:30:12下载
    积分:1
  • 网络五子棋源代码
    网络五子棋源代码-network source code 331
    2022-01-28 14:52:01下载
    积分:1
  • 功能十分简单的网络五子棋。主要可以用于学习交流…
    功能十分简单的网络五子棋。主要可以用来学习SOCKET通信与五子棋的算法。-Function is very simple network Gobang. The main can be used to study communications and Gobang SOCKET algorithms.
    2022-11-03 04:30:03下载
    积分:1
  • 象棋小巫师的源码,棋力不错,希望对大家有帮助
    象棋小巫师的源码,棋力不错,希望对大家有帮助-Chess Wizards of the source of small,棋力good, and they hope to help everyone
    2022-01-26 06:13:34下载
    积分:1
  • 经典的五子棋游戏,支持双人,人机和网络对战。采用C++代码编写。并且加入了简单的AI设计,你自己也可以扩充。...
    经典的五子棋游戏,支持双人,人机和网络对战。采用C++代码编写。并且加入了简单的AI设计,你自己也可以扩充。-Gobang classic games, support for double, and network man-machine war. The use of C++ code to prepare. And add a simple design of the AI, you can also expand their own.
    2022-07-05 03:24:19下载
    积分:1
  • cardlib:Win32 C++卡
    CardLib:A Win32 C++ card-game library. CardLib contains the library files(source code). CardExample is a simple example of how to use the library. -CardLib: A Win32 C++ Card-game library.CardLib contains the library files (source code). CardExample is a simple example of how to use the library.
    2022-06-30 08:48:53下载
    积分:1
  • use the website to achieve playing Tetris game, if the game is embedded into web...
    使用java applet实现网页上玩俄罗斯方块游戏,如果把游戏嵌入到网站中,必定生色不少!使用到的技术:java swing jApplet 4维数组运算等-use the website to achieve playing Tetris game, if the game is embedded into websites that will take a lot more lively! The use of the technology : java swing jApplet four-dimensional arrays, etc. Operational
    2022-04-27 12:21:59下载
    积分:1
  • 用JAVA语言编写的围棋程序
    用JAVA语言编写的围棋程序-with Java language Go procedures
    2022-01-26 00:40:17下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载