willb335 / chessboardjsx

:black_square_button: Chessboard built for React
https://chessboardjsx.com
MIT License
267 stars 79 forks source link

fix(chessboard): make computer respond on move 1 #32

Closed willb335 closed 6 years ago

willb335 commented 6 years ago

@furrykef

Take a look at Demo.js with PrestoChango added

I also tested the changes by playing the Stockfish engine and the moves are being played out in the correct order as far as I can tell

codecov-io commented 6 years ago

Codecov Report

Merging #32 into master will increase coverage by 0.13%. The diff coverage is 50%.

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   62.73%   62.86%   +0.13%     
==========================================
  Files          10       10              
  Lines         271      272       +1     
  Branches       62       62              
==========================================
+ Hits          170      171       +1     
  Misses         80       80              
  Partials       21       21
willb335 commented 6 years ago

closed with https://github.com/willb335/chessboardjsx/commit/0b2884ccb9ab0514fd887efe064ab3d17770c9f2