• ###### Mr_Silky_Thighcreated an issue for "Talisman Board Game Combat System Checker" kata

I suggest fixing a few sentences in the Instructions for clarity. My suggested versions are below:

-If the player has at least 6 more power than the enemy (including modifiers), the player automatically wins, as the enemy's combat score couldn't possibly exceed the player's.

-If the player has less power than the enemy (including modifiers), the player can only win if the enemy rolls low enough for the player to have a chance. In this instance, the method should return a range equal to the ENEMY’s dice rolls which would give the player a chance to win.

• ###### RandomJavaNoobcommented on "Guess the number!" kata

Yes, I mean that it is probably better to say something like 'change that method'.
Sure I need more experience to get such things better )).

• ###### trashy_incelcommented on "Guess the number!" kata

it seems the test for `1000` has invalidated a great many solutions. should this test be removed ?

• ###### ffoleyTEcommented on "Guess the number!" kata

OK I have it now. 10 guesses is sufficent to solve any number between 1 and 1000!

• ###### trashy_incelcommented on "Guess the number!" kata

yes, there is a more efficient algorithm. you should not be picking numbers randomly.

• ###### B1tscommented on "Guess the number!" kata

I then refine my guess to pick a random number between 1 and 500.

Wrong. There should be no randomness involved in your algorithm. Otherwise, you're right: you may need more than 10 guesses.

After the first guess, why do you need to pick a random number? Why did you pick 500 initially?

• ###### ffoleyTEcommented on "Guess the number!" kata

OK,

So I have 10 guesses to figure out a number between 1 and 1000: Lets say the number to be guessed is 345.

Now my first guess is 500 obviously too high, I then refine my guess to pick a random number between 1 and 500.

I continue refining the range of the guess depending on the result of the previous guess. So for example, my second guess is 200 which is too low then my third guess will be between 200 and 500. One can easily use up the 10 guesses without reaching the correct number in 10 guesses. It is not possible to make it more efficent than that!

So my issue is still boils down to what to I do if I don't guess the correct number within 10 guesses?

• ###### Chrono79commented on "Guess the number!" kata

The name depends on the language.

• ###### RandomJavaNoobcommented on "Guess the number!" kata

To me the description is not clear. It says to write method 'get_number()', but there is already method 'getNumber()' (without underscore). Cycle in it runs for 1000 times when there are only 10 attempts. Those things are confusing.

• ###### ffoleyTEcommented on "Guess the number!" kata

I have a solution to this kata, it works fine when I guess the number within 10 guesses. However I can't figure out what I'm supposed to do if I fail to find the number within 10 guesses.

For example this is the message I get: "you guessed 604, but the number was 600: expected 604 to equal 600"

Any suggestions as to what I can do to finish this kata will e gratefully accepted.

fixed

• ###### K01egAcommented on "Guess the number!" kata

JS: RangeError: You cannot make more than 10 guesses ! The number to guess was 1001

• ###### trashy_incelcreated a suggestion for "Guess the number!" kata

C translation (author inactive)

• ###### trashy_incelcommented on "Guess the number!" kata

the design of the kata is nonsensical in JS, we are asked to guess a number from the very instance where this number is stored, you literally only have to return the number property to pass the tests !

the reference solution also does not work for `1000`
proposed fork with Node 14, information hiding, backward compatibility, edge cases, random tests

• ###### <--BinaryAir-->commented on "Guess the number!" kata

please make a python version... quite excited to try my hand on this!