Checkers游戏源码 |
| 作者:J2MEDEV 来源:J2MEDEV 发布时间:2006-7-25 9:04:09 |
|
ccupied by an opponent, see if we can jump it: } else if(myGrid[coordinates[0]][coordinates[1]] < 0) { byte[] jumpLanding = getCornerCoordinates(coordinates[0], coordinates[1], i); // if the space on the far side of the opponent's piece // is on the board and is unoccupied, then a jump // is possible, so we add it to the vector of moves: if((jumpLanding != null) && (myGrid[jumpLanding[0]][jumpLanding[1]] == 0)) { toFill.addElement(jumpLanding); } } } } // end for loop } } |
| [] [返回上一页] [打 印] |
|
文章评论 |
