Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
@chrono79 thanks!
You have some problem in your code like this:
console.log
returns undefined.Factor translation
@hobovsky my result "Player 1 Won!"
Use a simple loop, the return of forEach isn't working as you think it should.
There is something wrong with this kata.
This comment is hidden because it contains spoiler information about the solution
cool kata, took me awhile
Run this code locally in your VS Code and tell me what happens:
console.info("For paper and rock, my solution returns: " + rpsls('paper', 'rock'));
Hi. Why can't I pass the random test? gives me the correct answer in VS CODE
Test Results:
rock paper scissors lizard spock
Random test
Log
Player 2 Won!
Didn't work for the following combination: paper and scissors: expected undefined to equal 'Player 2 Won!'