达内学习心得和TTS有所不同的贪吃蛇能穿墙而不是撞墙.docVIP

  • 4
  • 0
  • 约1.92万字
  • 约 17页
  • 2017-05-18 发布于重庆
  • 举报

达内学习心得和TTS有所不同的贪吃蛇能穿墙而不是撞墙.doc

达内学习心得和TTS有所不同的贪吃蛇能穿墙而不是撞墙

达内学习心得:和TTS 有所不同的贪吃蛇 能穿墙而不是撞墙 参赛人:陈彬豪 获得奖项:三等奖 内容: 第一步,就是先把单个格子的属性创建出来 public class Cell { int row; int col; int color; static int indexRow = 10000;//这个参数是上下穿墙用的,为了保证不用完,要尽可能的大 static int indexCol = 10000;//这个参数是左右穿墙用的,为了保证不用完,要尽可能的大 public Cell(){//对于父类,无参数构造器不一定用到,应该习惯的写上 } public Cell(int x, int y, int color) { super(); this.row = x; this.col = y; this.color = color; } //各属性的get set方法 public int getColor() { return color; } public void setColor(int color) { this.color = c

文档评论(0)

1亿VIP精品文档

相关文档