[NKU]sweet @ Google && TopCoder && CodeForces

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  33 Posts :: 1 Stories :: 15 Comments :: 0 Trackbacks
  1 /*
  2     Author: Sweetsc 寂寞之余所做
  3 
  4     设定集
  5         蹭的累:http://baike.baidu.com/view/2213196.htm
  6         比利:http://baike.baidu.com/view/2280157.htm
  7         Yoooooooooo:http://124.228.254.229/html/ent/20110421/192948.html
  8 */
  9 
 10 
 11 import java.util.*;
 12 
 13 class Event {
 14     static Random rand = new Random();
 15     final static String[] eventlist = {
 16         "散步",
 17         "吃饭",
 18         "看电影",
 19         "购物",
 20         "旅游"
 21     };
 22     int event = rand.nextInt() % eventlist.length;
 23     String getEvent() {
 24         return eventlist[event];
 25     }
 26 }
 27 
 28 class Girl {
 29     final static String[] character = {
 30         "蹭的累",
 31         "天然呆",
 32         "普通",
 33         "软妹子",
 34         "伪娘",
 35         "宅女",
 36         "腐女",
 37         "百合"
 38     };
 39     static Random rand = new Random();
 40 
 41     String name;
 42     int type;
 43     int friendship;
 44 
 45     Girl(String name) {
 46         this.name = name;
 47         type = rand.nextInt() % character.length;
 48         friendship = 0;
 49     }
 50 
 51     String getName() {
 52         String ans = name;
 53         if (friendship < 10) {
 54             if (type == 0return "闭嘴,基佬!";
 55             return "";
 56         }
 57         return ans;
 58     }
 59 
 60     void meet() {
 61         friendship ++;
 62     }
 63 
 64     void date(Event event) {
 65         if (friendship < 20) {
 66             if (type == 0) {
 67                 System.out.println("我为什么要和你" + event.getEvent() + "啊?");
 68             } else {
 69                 System.out.println("不好意思,我那天有事.");
 70             }
 71         } else {
 72             if (type == 0) {
 73                 System.out.println("偶尔和你去" + event.getEvent() + "也可以啊");
 74             } else {
 75                 System.out.println("好啊");
 76             }
 77             friendship += rand.nextInt() % 10 + 5;
 78         }
 79     }
 80 
 81     void lastJudgeMent() {
 82         if (friendship < 80) {
 83             System.out.println("她沉默了许久,转身离开");
 84             System.out.println("然后就没有然后了……");
 85             System.err.println("系统提示,好感度不足!");
 86             friendship = 0x80000000;
 87             return;
 88         } else {
 89             switch (type) {
 90                 case 0 : 
 91                     System.out.println("仑家可不是因为喜欢才答应的哦!");
 92                     break;
 93                 case 4 : 
 94                     System.out.println("Yoooooooooooooooooo!!!!");
 95                     System.out.println("你从此,跟随比利,走向了追求人生哲学的道路");
 96                     System.err.println("系统提示,你求交往的对象是伪娘!");
 97                     break;
 98                 case 6 : 
 99                     System.out.println("她满怀欣喜的答应了");
100                     System.out.println("过了几天,她介绍了个男友给你");
101                     System.out.println("Yoooooooooooooooooo!!!!");
102                     System.out.println("你从此,跟随比利,走向了追求人生哲学的道路");
103                     System.err.println("系统提示,你求交往的对象是腐女!");
104                     break;
105                 case 7 : 
106                     System.out.println("她面无表情的说:我喜欢的是女生!");
107                     System.out.println("然后就没有然后了……");
108                     friendship = 0x80000000;
109                     break;
110                 default : 
111                     System.out.println("她满脸通红,沉默了许久,之后羞涩的说道:好吧");
112                     System.out.println("从此,你和" + character[type] + name + "过上了幸福的生活");
113                     System.err.println("终于Goodend了,可喜可贺可喜可贺");
114             }
115         }
116     }
117 
118 }
posted on 2011-05-23 23:55 sweetsc 阅读(589) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: