Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

19
  • \$\begingroup\$ Hm, I don't understand how to advance to the next turn… I just see this (Chrome on Mac). \$\endgroup\$ Commented Feb 17, 2020 at 18:46
  • 2
    \$\begingroup\$ @Lynn The game stops when there's only one player alive - you'll need to define your own bot to get it to keep going. Either clone the repo and edit directly or create a bot function (in the console) and then push the function into the bots array. \$\endgroup\$ Commented Feb 17, 2020 at 18:48
  • \$\begingroup\$ You said we can use 'Math.random'. I assume you mean we can use whatever built-in implementation specific to our language? \$\endgroup\$ Commented Feb 18, 2020 at 8:24
  • 1
    \$\begingroup\$ @Spitemaster You should specify that x is the major index and y the minor index of the grid; this is the opposite of the usual convention. \$\endgroup\$ Commented Feb 18, 2020 at 10:09
  • \$\begingroup\$ @ouflak The controller is in Javascript, and your bot will be written in Javascript (as stated), so no, you can use Math.random. I specifically stated that because there are ways to seed Math.random, and I want to leave that option open so that I can potentially have reproducible results. \$\endgroup\$ Commented Feb 18, 2020 at 14:22