HaliteChallenge / Halite-II

Season 2 of @twosigma's artificial intelligence programming challenge
https://halite.io
MIT License
216 stars 97 forks source link

Sample code for javascript bot doesn't run #446

Open sebastianandreasson opened 6 years ago

sebastianandreasson commented 6 years ago

Just found this awesome project and tried out the starting javascript bot, however it didn't run for me. Looks to be usage of spread operator here

Changing it from

this._params = {
  health: constants.BASE_SHIP_HEALTH,
  dockingStatus: dockingStatus.UNDOCKED,
  ...params
}

to

this._params = Object.assign({
  health: constants.BASE_SHIP_HEALTH,
  dockingStatus: dockingStatus.UNDOCKED,
}, params)

and it runs fine!