这是一个生存游戏
一个会计部门经理 犯了一个错 就是两个相同的文件 上 竟然是不同承包商的名字
他就面临压力 会不会被开除呀什么的
现在就要做一个程序 让他可以活过7天 用户就赢了
在四种情况(貌似就是rumor)下进行对自己表现的选择:
1. No one knows anything. Should youbelieve them? 没有一个人知道这件事
2. The local paper is about totell the whole story.当地的报纸报道了整件事
3. You have leftyour assistant alone in your office -- can they really be trusted? 你把你的助理一个人留在了办公室里,他们可以相信吗?(意思就是会不会透露出去)
4. Your competitor, Miss Fitz,has your original document -- how long until they put it back together?(你的竞争者拿到了你的原始文件,他们什么时候会还给你呢)
控制输入是这样的:
1. No Comment! 不发表言论,沉默。
2.否认自己犯了错 denying any wrong doing,
3. 把第一份文档用碎纸机碎了当什么事都没发生(如果文件还在她的办公室还有碎纸机也没满的话)shredding the original document (if it is in their possession and the shredderisn't full),
4.辞职 or resigning。 如果辞职就游戏结束了。
整个编写要求就是:
在运行中,要显示 当前第几天,碎纸机多满了,还有他们对未来有多担心(这些例子中都有给出)
关于输入后的输出,为什么输出那个怎么输出。。我是真心看不懂。。智商真的不够。。。
1.要完全使用所给的FinanceManger里的对象,也可自己创造别的所给JAVA文件里没有的,但是不能改所给两个文件的任何东西。
2.要用到trace方法:
To switch tracing on use: manager.setTracing(true);
Toswitch tracing off use: manager.setTracing(false);
Make sure you switch the messages offbefore submission.
3.还要给用户一个大概对整件事的描述,就是 例子中的最前面的一大段一定要每次游戏开始前输出。
4.游戏结束后,最后也要要输出这些
How manygames were played.
How manygames were won by the user.
How manygames were lost by the user.
How many games were drawn.