Location:
Search - color line ga
Search list
Description: 本次实验实现一个Five In A Line的游戏。游戏规则为:游戏有一个9 X 9的棋盘,七种不同颜色的无限数目的棋子。游戏开始时,五个棋子被随机的散布在棋盘中,玩家可以移动一个棋子到另一个可达的位置(两点之间存在一条通路),如果将至少五个相同颜色的棋子连成一线,不论垂直,水平或者对角线,就能将这些棋子消掉,获取相应的分数,并且获得再次移动棋子的机会,否则系统随机产生三个棋子放在棋盘中。当所有的棋子布满整个棋盘,游戏结束,当前的分数就是该次游戏最终的分数。
实验要绘制一个图形界面,包括一个重置按钮,一个9 X 9棋盘,两个标签,分别显示当前分数和下次随机产生的棋子的颜色,程序要实现整个游戏的逻辑。-Experiments to draw a graphical interface, including a reset button, a 9 X 9 board, two labels, respectively, shows the current scores and the next randomly generated color pieces, the program to achieve the entire game logic.
Platform: |
Size: 4096 |
Author: jkzhao |
Hits:
Description: 五子连珠游戏,在9×9方格中每次随机增加3个小球,鼠标点击小球移动,每当5个同颜色的小球连成1行,则消去并得分。-Wuzilianzhu games, in 9 × 9 grid were increased by 3 each time a small ball, the ball moves the mouse click, every 5 balls with the same color into a line, then the elimination and score.
Platform: |
Size: 593920 |
Author: anyuan |
Hits: