using System;publicclassKata{publicstaticObjectPlayerRankUp(int points){if(points >=100){return"Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.";}returnfalse;}}
答案2:
using System;publicclassKata{publicstaticObjectPlayerRankUp(int points){if(points >=100)return"Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.";returnfalse;}}
答案3:
using System;publicclassKata{publicstaticObjectPlayerRankUp(int points){return points >=100?"Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.":(Object)false;}}
答案4:
using System;publicclassKata{publicstaticObjectPlayerRankUp(int points){return(points >=100)?"Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.":(Object)false;}}
答案5:
using System;publicclassKata{publicstaticObjectPlayerRankUp(int points){string message ="Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.";return points >=100?(Object)message :false;}}
答案6:
using System;publicclassKata{publicstaticObjectPlayerRankUp(int points){if(points>=100){object o ="Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.";return o;}else{object o =false;return o;}}}
答案7:
using System;publicclassKata{privateconstbool V =false;publicstaticint newLevel =100;publicstaticObjectPlayerRankUp(int points){return(points < newLevel
?(object)V
:"Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.");}}
答案8:
using System;publicclassKata{publicstaticObjectPlayerRankUp(int points)=>(points >99)?(Object)"Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.":(Object)false;}
答案9:
publicclassKata{publicstaticSystem.ObjectPlayerRankUp(int points)=> points >=100?(System.Object)"Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.":false;}
答案10:
using System;publicclassKata{privateconststring rankUpMessage ="Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.";publicstaticObjectPlayerRankUp(int points){return points >=100?(Object)rankUpMessage :false;}}
答案11:
using System;publicclassKata{publicstaticObjectPlayerRankUp(int points){Object pRankUp;if(points >=100){
pRankUp ="Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.";}else{
pRankUp =false;}return pRankUp;}}
答案12:
using System;publicclassKata{publicstaticObjectPlayerRankUp(int points){string str ="Well done! You have advanced to the qualifying stage. Win 2 out of your next 3 games to rank up.";return points <100?false:(object)str;}}