文件名称:fapaichengxu
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:4.88kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Java编程 做一个发牌的程序
首先是创造牌(牌会有1-6付选择),然后洗牌:将牌一分二,由( x(k+1) = (5xk mod 16) + 1 )来依次从两边取牌,直至牌不够,就将牌合起来。然后将牌发给2-60人,每人5张牌。
可以使用java.util.List<E>, java.util.Collection<E>, java.util.Iterator<E>, and java.util.ListIterator,最好用Arraylist来做。像牌数和人数,由输入决定
-Java program to do a licensing program is to create the first card (brand-sum option would be 1-6), and then shuffle: The license for one sub-2, from (x (k+1) = (5xk mod 16)+ 1 ) to turn from both sides to take a license until the license is not enough, it will be brand together. Then the card issued to 2-60, with each person 5 cards. You can use java.util.List <E> , Java.util.Collection <E> , Java.util.Iterator <E> , And java.util.ListIterator, preferably Arraylist do. Such as the number of licenses and the number of input decision
首先是创造牌(牌会有1-6付选择),然后洗牌:将牌一分二,由( x(k+1) = (5xk mod 16) + 1 )来依次从两边取牌,直至牌不够,就将牌合起来。然后将牌发给2-60人,每人5张牌。
可以使用java.util.List<E>, java.util.Collection<E>, java.util.Iterator<E>, and java.util.ListIterator,最好用Arraylist来做。像牌数和人数,由输入决定
-Java program to do a licensing program is to create the first card (brand-sum option would be 1-6), and then shuffle: The license for one sub-2, from (x (k+1) = (5xk mod 16)+ 1 ) to turn from both sides to take a license until the license is not enough, it will be brand together. Then the card issued to 2-60, with each person 5 cards. You can use java.util.List <E> , Java.util.Collection <E> , Java.util.Iterator <E> , And java.util.ListIterator, preferably Arraylist do. Such as the number of licenses and the number of input decision
(系统自动生成,下载前可以参看下载内容)
下载文件列表
发牌程序.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.