摘要
俄罗斯方块是一款经典的益智游戏,其算法实现可通过枚举算法、旋转坐标算法、数组方式去实现,重点对该游戏中的随机形状出现、不同形状的数据结构、多线程处理等关键算法进行分析与实现,以Java语言为例,验证了算法的可行性。
Tetris is a classic puzzle game, achieved by enumerating algorithms, rotating coordinates algorithm, an array of ways to implement, this article focused on the game, different shapes of random shapes appear in data structures, multithreading, and other key algorithms for analysis and implementation, as an example to validate the feasibility of algorithms in Java language.
出处
《电脑编程技巧与维护》
2013年第12期10-12,共3页
Computer Programming Skills & Maintenance
关键词
数组
随机值
算法
线程
基块
array
random value
algorithm
thread
basic block