• 大小: 0.05M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-26
  • 语言: 其他
  • 标签: 其他  

资源简介


java实现的简易消行程序,最高分数为1000万,平均能够消行400百万行,将Tetris里的enabledisplay改为true就有图形化界面

资源截图

代码片段和文件信息

package tetris;////////
import java.util.*;
import java.io.*;
import javax.swing.*;
////////
public class Main {
// ####
        static Tetris.PieceOperator action;
public static void main(String [] args) throws IOException InterruptedException {
                double sum=0;
                int seed = new Random().nextInt(128);
Random rand = new Random(seed);
                new show();
                for(int i=0;i<100;++i){
Q4D1500012943 tetris = new Q4D1500012943();
int score = tetris.run(rand);
                System.out.print(score+“ “);
                sum+=score;
                //int n=JOptionPane.showConfirmDialog(null “你输了“ “朱琪豪的2048“ JOptionPane.YES_OPTION);
                //System.exit(0);
                }
                System.out.print(sum/100);
        }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-06 15:03  Tetris\
     文件        8196  2017-04-06 21:11  Tetris\.DS_Store
     目录           0  2017-04-14 22:56  __MACOSX\
     目录           0  2017-04-14 22:56  __MACOSX\Tetris\
     文件         120  2017-04-06 21:11  __MACOSX\Tetris\._.DS_Store
     目录           0  2017-04-06 15:03  Tetris\build\
     文件         117  2017-04-06 15:03  Tetris\build\built-jar.properties
     目录           0  2017-04-06 15:05  Tetris\build\classes\
     文件           0  2017-04-06 15:05  Tetris\build\classes\.netbeans_automatic_build
     文件           0  2017-04-06 15:05  Tetris\build\classes\.netbeans_update_resources
     目录           0  2017-04-14 22:48  Tetris\build\classes\tetris\
     文件        1472  2017-04-14 01:01  Tetris\build\classes\tetris\Main.class
     文件         852  2017-04-14 22:48  Tetris\build\classes\tetris\Q4D1500012943$Aimove.class
     文件         917  2017-04-14 22:48  Tetris\build\classes\tetris\Q4D1500012943$searchnode.class
     文件        9057  2017-04-14 22:48  Tetris\build\classes\tetris\Q4D1500012943.class
     文件        2251  2017-04-14 01:01  Tetris\build\classes\tetris\show.class
     文件         781  2017-04-14 22:47  Tetris\build\classes\tetris\Tetris$1.class
     文件        1206  2017-04-14 22:47  Tetris\build\classes\tetris\Tetris$PieceOperator.class
     文件        6263  2017-04-14 22:47  Tetris\build\classes\tetris\Tetris.class
     目录           0  2017-04-06 15:03  Tetris\build\empty\
     目录           0  2017-04-06 15:03  Tetris\build\generated-sources\
     目录           0  2017-04-06 15:03  Tetris\build\generated-sources\ap-source-output\
     文件        3530  2017-03-17 11:58  Tetris\build.xml
     目录           0  2017-04-06 15:03  Tetris\dist\
     文件        6148  2017-04-05 13:26  Tetris\dist\.DS_Store
     目录           0  2017-04-14 22:56  __MACOSX\Tetris\dist\
     文件         120  2017-04-05 13:26  __MACOSX\Tetris\dist\._.DS_Store
     文件        1321  2017-04-06 15:03  Tetris\dist\README.TXT
     文件       24646  2017-04-06 15:03  Tetris\dist\Tetris.jar
     文件          82  2017-03-17 11:58  Tetris\manifest.mf
     目录           0  2017-03-17 11:58  Tetris\nbproject\
............此处省略21个文件信息

评论

共有 条评论