这个文件名为 play.java ,仅存在于 1.0.4-exp 1+ 版本,可使用 Java 运行,是作者留下的一个彩蛋。
最新版本源码:
ackage com.powertianyestudio.kongzhongtitian.lianxi;
import java.util.Scanner;
import java.util.Random;
public class play {
public static void main(String[] args) {
for (int i = 0; i < 20000; i++) {
System.out.println("Loading.");
System.out.println("Loading..");
System.out.println("Loading...");
System.out.println("Loading....");
System.out.println("Loading.....");
}
for (int i = 0; i < 7500; i++) {
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] .");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] ..");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] ...");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] ....");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] .....");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] ......");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] .......");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] ........");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] .........");
System.out.println("不知道什么东西 Version 1.1 正在启动 [memory:we don't know kb] ..........");
}
Scanner sss = new Scanner(System.in);
System.out.println("你想玩(1为计算器,2为猜数,3为打开配方追加-盐块的Wiki):");
byte gan = (byte) sss.nextInt();
if (gan == 1){
System.out.println("数A是:");
short sa = (short) sss.nextInt();
System.out.println("数A是:" + sa);
System.out.println("数B是:");
short sb = (short) sss.nextInt();
System.out.println("数B是:" + sb);
System.out.println("方法(1为加,2为减,3为乘,4为除):");
byte s = (byte) sss.nextInt();
System.out.println("方法为:" + s + "号");
if (s == 1){
int jia = sa + sb ;
System.out.println("loading...");
System.out.println("结果:" + jia);
}
else if (s == 2) {
short j = (short) (sa - sb);
System.out.println("loading...");
System.out.println("结果:" + j);
}
else if (s == 3) {
int cheng = sa * sb;
System.out.println("loading...");
System.out.println("结果:" + cheng);
}
else if (s == 4) {
if (sb <= 0) {
System.out.println("loading...");
System.out.println("结果:不可以这样");
} else {
double chu = 1.0 * sa / sb;
System.out.println("loading...");
System.out.println("结果:" + chu);
}
}
else {
System.out.println("loading...");
System.out.println("结果:没有该方法");
}
} else if (gan == 2) {
boolean yes_or_no;
yes_or_no = false;
Random r = new Random();
short cai = (short) ((short) r.nextInt(10000) + 1);
while (!yes_or_no) {
System.out.println("我猜:");
short no = (short) sss.nextInt();
if (no == cai) {
yes_or_no = true;
} else if (no >= cai) {
System.out.println("猜大了");
} else {
System.out.println("猜小了");
}
}
System.out.println("猜对了");
}
else if (gan == 3) {
System.out.println("相关链接:");
System.out.println("MC百科:自己搜");
System.out.println("Modtrinth:自己搜");
System.out.println("Q&A:");
System.out.println("这里还啥也没有呢");
}
else {
System.out.println("我很好奇你输入的是什么捏");
}
System.out.println("按任意键加换行键继续");
sss.nextInt();
}
}
资料分类: | 彩蛋 |