Light Mode
Dark Mode
The stones

I do not understand the conditions of this task. Let's take the simplest example:

assert.equal(stones(99, [1]), 2)

Obviously, the first one will take the last stone, and the condition

If the current amount of the stones in the pile is lower than lowest number 
in the "moves" list - current player takes them all and lose.

will not be fulfilled (1 less than 1? no). The second player has problem... But somehow he wins.

  • feedback
  • task.the-stones
Created: Sept. 19, 2018, 4:22 p.m.
Updated: Sept. 21, 2019, 4:09 a.m.
0
17
User avatar
SaintDron