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*

5
  • 1
    \$\begingroup\$ Note that Random has a nextBoolean method. \$\endgroup\$ Commented Apr 19, 2022 at 23:41
  • 1
    \$\begingroup\$ Also note that the score of the bot depends on the level it is standing on, this one would eventually get to the edges and only get 1 per turn. Maybe add a bit more variation to its movements? (ultimately it is your bot, feel free to do as you please) \$\endgroup\$ Commented Apr 19, 2022 at 23:45
  • \$\begingroup\$ Got it. I shall do that @Seggan. Also, thanks for the tip Unmitigated. \$\endgroup\$ Commented Apr 20, 2022 at 0:09
  • 1
    \$\begingroup\$ See my updated challenge. UP and DOWN are absolute. There is a moveUp() function \$\endgroup\$ Commented Apr 20, 2022 at 1:04
  • \$\begingroup\$ Thanks for pointing that out! I have fixed it, I believe. \$\endgroup\$ Commented Apr 20, 2022 at 1:10