Score
0
Watch 25 Star 104 Fork 12

Gitee星球的小活动 / 第 0 届 代码编故事接力赛

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
让我们点燃程序员写作之魂,一人用代码写一段故事玩玩吧~ spread retract

Clone or download
java-gettingBald(秃).md 1.86 KB
Copy Edit Web IDE Raw Blame History
Akunnn authored 2020-03-23 17:04 . add java-gettingBald(秃).md.

/**

  • “世界上本没有秃头,加班的人多了,也就成了秃头”————不是鲁迅说的 **/ public class Bald { public static void main(String[] args) { ThickHairedPerson npc = new ThickHairedPerson;//npc,一名拥有浓密秀发的年轻人 npc.setHobby("games"); npc.setSecondHobby("programing");

      for(4years:
          day){//大学四年
       npc.setMode("relax");
       HappyPersion happyNpc = startGame();//玩游戏吃零食是npc最快乐的时光
       Thread.sleep(28800000);//睡醒玩,玩完睡,8小时睡眠
      }
    
      if(isNpcLeaveSchool){//当npc毕业后
          npc.setCapitalPosition(0)//非常穷,一个金币都没有
          npc.setWork("programmer");
          }
    
    
    
      do{
      workHard(happyNpc);
      }
      while(!happyNpc.getPS4().getDisc().equals("新作"))//当npc没新作玩,就得努力工作
    
      happyNpc.getIsHappy = true;//才是真的快乐

//....有一天,老板说加班

}




protected void startGame()//快乐游戏
{
    PS4 npc_PS4 = new PS4;
    npc_PS4.setIsOpen(1);
    List<ALotOfGames> games = new List<ALotOfGames>;
    npc_PS4.setDisc(games);
    Snacks lotsSnacks = new Snacks("肥宅快乐水","麦丽素","薯片","QQ糖","海苔");
    HappyPersion happyNpc = new HappyPersion(npc_PS4,lotsSnacks)
    happyNpc.setHair(100000);//成年人发量
    return happyNpc;
}


 protected void workHard(happyNpc)//努力工作
{
    
    happyNpc.setHair(happyNpc.getHair()-10);//发量
    happyNpc.setMoney(happyNpc.getMoney()+100);
    if(happyNpc.getMoney()==1000){
            happyNpc.getPs4.setDisc("新作");
            return happyNpc;
    }
    return notThatHappyNpc;
}

}

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/Selected-Activities/Code-relay.git
git@gitee.com:Selected-Activities/Code-relay.git
Selected-Activities
Code-relay
第 0 届 代码编故事接力赛
master

Help Search

220309 7019f5b6 1899542 220318 4015cbb9 1899542