java纸牌程序
3.(7.30 Card Shuffling and Dealing) Modify the application of Fig. 7.11 to deal a five-card poker hand. Then modify class DeckOfCards of Fig. 7.10 to include methods that determine whether a hand contains a) a pair b) two pairs c) three of a kind (e.g., three jacks) d) four of a kind (e.g., four aces) e) a flush (i.e., all five cards of the same suit) f) a straight (i.e., five cards of consecutive face values) g) a full house (i.e., two cards of one face value and three cards of another face value) [Hint: Add methods getFace and getSuit to class Card of Fig. 7.9.] 4.(7.31Card Shuffling and Dealing) Use the methods developed in Exercise 7.30 to write an application that deals two five-card poker hands, evaluates each hand and determines which is better.
- 1
- qq_354342352017-03-11可以。还包含了后面几问
- 是的个人2018-04-09先來用用看
- 粉丝: 1
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助