fixed generate moves
This commit is contained in:
parent
2c6056005c
commit
dd07e5cf9b
|
@ -151,6 +151,7 @@ Model.Board.InitialPosition = function(aGame) {
|
||||||
/* Push into the mMoves array, every possible move
|
/* Push into the mMoves array, every possible move
|
||||||
*/
|
*/
|
||||||
Model.Board.GenerateMoves = function(aGame) {
|
Model.Board.GenerateMoves = function(aGame) {
|
||||||
|
this.mMoves = [];
|
||||||
try {
|
try {
|
||||||
this._GenerateMoves(aGame);
|
this._GenerateMoves(aGame);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
Loading…
Reference in a new issue