文件名称:Casino
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.24kb
-
已下载: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.