java版俄罗斯方块计算机等级考试

文章作者 100test 发表时间 2010:01:14 16:39:06
来源 100Test.Com百考试题网


  一个java 版本的俄罗斯方块。先说小弟java水平尚属初级水平所有见笑了 有些bug,不想继续修改了,但是所有的基本功能都实现了。如果有需要的,可以参考一下

  方块构造类

  package com.

  import java.util.Random.

  public class Fangk {

  private String[][] fklist = {

  {"0000111100000000","0100010001000100","0000111100000000","0100010001000100"},

  {"0000011001100000","0000011001100000","0000011001100000","0000011001100000"},

  {"0000001001110000","0010001100100000","0000011100100000","0010011000100000"},

  {"0010011001000000","0000011000110000","0010011001000000","0000011000110000"},

  {"0100011000100000","0000001101100000","0100011000100000","0000001101100000"},

  {"0000010001100010","0000011011000000","0000010001100010","0000011011000000"},

  {"0000011101000000","0110001000100000","0000000101110000","0000010001000110"},

  }.

  private int pcl.

  private int scl.

  private int lpcl.

  private int lscl.

  public int[] Fack(){

  int[] a = new int [16].

  Fangk ab = new Fangk().

  Random rand = new Random().

  lpcl = rand.nextInt(7).

  lscl = rand.nextInt(3).

  // System.out.println("fuck" pcl "ou" scl).

  for(int i=0.i


相关文章


Java设计模式之State模式计算机等级考试
Java设计模式之Proxy模式计算机等级考试
Java设计模式之Facade模式计算机等级考试
Java设计模式之Singleton模式计算机等级考试
java版俄罗斯方块计算机等级考试
C 中虚析构函数的作用计算机等级考试
C 利用SOCKET传送文件计算机等级考试
简单多线程服务器实现计算机等级考试
struts spring实现的登陆实例源码计算机等级考试
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛