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