TA的每日心情 | 开心 2015-12-23 04:08 |
---|
签到天数: 2 天 [LV.1]炼气
|
沙发
楼主 |
发表于 2014-2-24 10:30:57
|
只看该作者
本帖最后由 Highway 于 2014-2-24 11:00 编辑
运行的时候,先弄弄参数,把过程打出来,你可以检查一下程序是不是按你设计的来运行。然后再开始做大量的模拟和统计。
运行的结果是- >>>
- Do some demo first
- Bouns bag: Bag_A, First pick: Bag_A, removed one: Bag_B, Final pick: Bag_A, you win: True
- Bouns bag: Bag_C, First pick: Bag_C, removed one: Bag_A, Final pick: Bag_C, you win: True
- Bouns bag: Bag_A, First pick: Bag_A, removed one: Bag_B, Final pick: Bag_A, you win: True
- Bouns bag: Bag_B, First pick: Bag_C, removed one: Bag_A, Final pick: Bag_C, you win: False
- Bouns bag: Bag_C, First pick: Bag_A, removed one: Bag_B, Final pick: Bag_A, you win: False
- Bouns bag: Bag_A, First pick: Bag_A, removed one: Bag_B, Final pick: Bag_A, you win: True
- Bouns bag: Bag_B, First pick: Bag_A, removed one: Bag_C, Final pick: Bag_A, you win: False
- Bouns bag: Bag_B, First pick: Bag_B, removed one: Bag_A, Final pick: Bag_B, you win: True
- Bouns bag: Bag_B, First pick: Bag_B, removed one: Bag_A, Final pick: Bag_B, you win: True
- Bouns bag: Bag_C, First pick: Bag_B, removed one: Bag_A, Final pick: Bag_B, you win: False
- Change Parameter and try again.
- Bouns bag: Bag_C, First pick: Bag_B, removed one: Bag_A, Final pick: Bag_C, you win: True
- Bouns bag: Bag_B, First pick: Bag_B, removed one: Bag_A, Final pick: Bag_C, you win: False
- Bouns bag: Bag_C, First pick: Bag_A, removed one: Bag_B, Final pick: Bag_C, you win: True
- Bouns bag: Bag_B, First pick: Bag_C, removed one: Bag_A, Final pick: Bag_B, you win: True
- Bouns bag: Bag_A, First pick: Bag_C, removed one: Bag_A, Final pick: Bag_B, you win: False
- Bouns bag: Bag_A, First pick: Bag_C, removed one: Bag_A, Final pick: Bag_B, you win: False
- Bouns bag: Bag_C, First pick: Bag_C, removed one: Bag_A, Final pick: Bag_B, you win: False
- Bouns bag: Bag_B, First pick: Bag_B, removed one: Bag_A, Final pick: Bag_C, you win: False
- Bouns bag: Bag_B, First pick: Bag_C, removed one: Bag_A, Final pick: Bag_B, you win: True
- Bouns bag: Bag_A, First pick: Bag_C, removed one: Bag_A, Final pick: Bag_B, you win: False
- CASE 1: If you do not change mind and judge know which one is empty to remove
- then you win 33208 times and you lose 66792 times
- CASE 2: If you change mind and judge know which one is empty to remove
- then you win 666444 times and you lose 333556 times
- CASE 3: If you do not change mind and judge does not know which one is empty to remove
- then you win 333512 times and you lose 666488 times
- CASE 4: If you change mind and judge does not knows which one is empty to remove
- then you win 333080 times and you lose 666920 times
复制代码 |
评分
-
查看全部评分
|