搜索资源列表
BogartGame
- This the source codes for the Bogart Game. It has 2-6 players and the players keep rolling the dice until one has won. A person won when he/she has 30 or more chips, or did not roll a 1 straight 5 times. if the person has rolled a 1, his turn will be
Roll
- 做一个应用程序模拟掷色子的游戏: 1)使用Math.random方法分别取得两个随机数(掷两次色子),每个随机数为范围在1-6之间的整数,把两个随机数相加(则和的范围是2-12); 2)模拟36000次,然后计算和为2-12间各数出现的几率。判断是否合理(如:有6种方式可以掷出和为7,所以7的出现几率应该大概为1/6)。 -To do an application simulates the dice game: 1) Use the Math.random method to
four2
- 编写自动投掷色子的程序,用数组统计1000次投掷后,各点值得出现次数,用Swing对话框显示结果-Write a program to automatically roll the dice, throw after 1000 with an array of statistics, the number of occurrences of each point is worth, the dialog box displays the results with Swing