ajax333221 / isepic-chess

♞ JavaScript chess utility library.
MIT License
16 stars 3 forks source link

board.cloneBoardFrom() and board.cloneBoardTo() returns true even if the board is unchanged #30

Closed ajax333221 closed 2 years ago

ajax333221 commented 2 years ago

It should return a Boolean true only if the board hash changed, when calling it 2 or more times should make all the subsequent calls false.

Currently, it returns true simply if it didn't throw an error.

This change will make it consistent with many other board methods, who actually return a real "rtn_changed?" and not a "rtn_no_errors?".