smit-mist / Load-Chess

0 stars 0 forks source link

Repeated nodes in game tree. #1

Closed smit-mist closed 2 years ago

smit-mist commented 2 years ago

Two things are sorted.

  1. IF move is invalid don't update tree.
  2. Checking for child was not correct.

for (var x in arr) -> x will be index. don't compare two objects directly, compare each field.