文件名称:Casino
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 何**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
§6.4 节的程序洗牌时,首先随机地确定一副牌的两个位置,然后交互这两个位置的牌,我们玩牌时很少采用这种洗牌方式。一种常见洗牌方式是随机地从一副牌中抽出连续一叠牌,将它们放在剩余牌的最上面,并且不断重要这一过程。试将§6.4 节程序的洗牌程序改进为这种洗牌方式。(提示:只需修改§6.4 节程序的shuffle()方法,仍由伪随机数确定数组中的两个位置,然后将数组中间的连续一段元素移到最前;移动时既可逐个元素地向前移,也可考虑引入一个临时的辅助数组。)-§ 6.4 section of the program shuffle, the first deck of cards at random to determine the two locations, then the location of the interaction of these two cards, we rarely use this when playing shuffle mode. A common way is to shuffle randomly drawn from a continuous stack of cards in the card, put them on top of the remaining cards, and has been important to this process. Try to § 6.4 节 process improvement program for this shuffle shuffle mode. (Hint: just modify § 6.4 节 program shuffle () method, still pseudo-random number to determine the location of the array in two, then the array elements in the middle of a move to the front row can move forward by one element shift, also consider the introduction of a temporary auxiliary array.)
相关搜索: casino
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Card.java
Casino.java
PlayingCards.java
Casino.java
PlayingCards.java