olistic / warriorjs

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

Fix think ability #220

Closed olistic closed 6 years ago

olistic commented 6 years ago

Previously, warrior.think({ foo: 'bar' }) printed Spartacus thinks [object Object]. This PR fixes that, plus makes the behavior of warrior.think() almost the same as console.log().

codecov-io commented 6 years ago

Codecov Report

Merging #220 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
+ Coverage   92.64%   92.64%   +<.01%     
==========================================
  Files          92       92              
  Lines        1087     1088       +1     
  Branches      165      165              
==========================================
+ Hits         1007     1008       +1     
  Misses         65       65              
  Partials       15       15
Impacted Files Coverage Δ
packages/warriorjs-abilities/src/think.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 419a081...d91b426. Read the comment docs.