请帮我完成一个练习题好吗?

lhx20 2010-03-04 10:02:11
是我一个作业,我本身没有不是学计算机的,但有C++的课程。请帮我完成下面这个游戏好吗?

万分感谢!!!

Lucky Dice

Practical Work
By using Microsoft Visual Studio 2008, write a C++ object-oriented program to implement the game
“Lucky Dice”. This game involves two players. At first both players roll dice to see who has the
higher hand; the rank for determining this is governed by the table below. The player having the
lower hand would be given a chance to have a supplementary roll with some dice chosen to be kept,
i.e. no second rolling, based on his/her own preference. If the result is still the lower hand, then
he/she loses the game. Otherwise, the other player can have a chance to roll his/her dice again with
some dice chosen to be kept based on his/her own preference. The game continues until any one get
lower hand in the supplementary roll; then the other player wins the game. The game will restart
whenever a tie occurs.
The combination of the dice points determines the rank of a hand. The descending order of the
combination is listed as follows.
Combination Meaning
Five of a Kind Five dice of one number.
Four of a Kind Four dice of one number; plus an unmatched dice of another
number.
Full House Three dice of one number and two dice of another number.
Straight Five dice of sequential number.
Three of a kind Three dice of the same number; plus two unmatched dice of
other numbers.
Two Pair Two dice of the same number, two dice of another number; plus
one unmatched dice.
One Pair Two dice of the same number; plus three other unmatched dice.
Single All dice of different number. The largest number will be
counted.
1. Your program needs to be designed with a graphical user interface (GUI).
2. While you are responsible for the final design of the program, it is required that the code
governing the rules of the game should be implemented with a separate static library and included
into the managed C++ codes. The managed C++ code you write should only be responsible for
the GUI.
3. Before a user starts to play, he/she needs to login the system first. A file is then created to store
the result of this user when playing the game, e.g. the number of time he/she wins and loses the
game. If this user has played this game before, his/her historical record should be retrieved and
shown on the screen. After he/she plays the game, his/her record should then be modified and
stored.
4. Should you want to get a credit, you should design the game with some advanced features. For
instance, the player is allowed to play with the computer. Some animation on rolling the dice
can be added before the dice points are revealed.
5. Should you want to get a distinction, you are free to add more features to the game that will make
it to be more interesting. You may seek the opinion of your subject lecturer/tutor before you do
so. The criterion is that the added features must be new that require additional but not repeated
effort.
...全文
153 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
kuillldan 2010-03-04
  • 打赏
  • 举报
回复
管理员快出来。。。又找到一个求做作业的。。。快呀,免得他跑了。。。
不知名小ITer 2010-03-04
  • 打赏
  • 举报
回复
哇..翻译都不想翻译下啊..lazy guy...
xiejijun_05 2010-03-04
  • 打赏
  • 举报
回复
jiefen!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
lhx20 2010-03-04
  • 打赏
  • 举报
回复
咋了楼上的?我犯法拉?
sagegz 2010-03-04
  • 打赏
  • 举报
回复
管理员人呢?
linglongyouzhi 2010-03-04
  • 打赏
  • 举报
回复
好像不是很难,楼主还是自己做做看吧
虽然不想做计算机,但是熟悉熟悉这个方向还是比较好的,至少可以多一种思维的方式
_JeffreyWu 2010-03-04
  • 打赏
  • 举报
回复
看不懂这是嘛游戏,最好有个参考....
wangxing221 2010-03-04
  • 打赏
  • 举报
回复
你翻译一下先,太长,看的太累
lhx20 2010-03-04
  • 打赏
  • 举报
回复
呵呵。。谢谢楼上的好意。。

由于我本身不是做这个专业的。。也没有想以后往这个方向发展。只是想适当的交差就可以了。

这道题对大家来说应该不难吧。。

这里不能发这样的题目吗?不好意思,我不知道。。如果这样的话管理员把我这帖给锁了吧。
blpluto 2010-03-04
  • 打赏
  • 举报
回复
楼主你不能找人帮你做题啊,做了你还是学不会

你可以先做,遇到问题再问,你直接问答案你永远页学不会啊

64,644

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧