ETang444 / Jack-Aivant-Eric-CheckersAI

Hello! This should store all our code, for all our classes, of the Checkers AI project. CSC 420 4 life.
0 stars 1 forks source link

Checking for Out of Bounds #3

Closed ETang444 closed 9 years ago

ETang444 commented 9 years ago

Just putting this somewhere before I forget it. In the AI we'll need to check all possible moves, so in the checkValidMove() function, we need to check for boundaries.

ETang444 commented 9 years ago

Should be one quick fix: if(toY>7||toY<0||toX>7||toX<0) return 0;