olistic / warriorjs

🏰 An exciting game of programming and Artificial Intelligence
https://warriorjs.com
MIT License
9.43k stars 490 forks source link

Add unit.release() method #140

Closed olistic closed 6 years ago

olistic commented 6 years ago

Move release logic (unbinding and scoring) from the rescue ability to the core.

codecov-io commented 6 years ago

Codecov Report

Merging #140 into master will increase coverage by 0.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #140      +/-   ##
=========================================
+ Coverage   91.08%   91.1%   +0.01%     
=========================================
  Files          81      81              
  Lines        1043    1045       +2     
  Branches      167     167              
=========================================
+ Hits          950     952       +2     
  Misses         77      77              
  Partials       16      16
Impacted Files Coverage Δ
packages/warriorjs-abilities/src/rescue.js 100% <100%> (ø) :arrow_up:
packages/warriorjs-core/src/Unit.js 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 91f59ed...6086633. Read the comment docs.