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.
It is a short hand if else statment. Each of the statments
(p1 + p2).equals("scissorspaper") || (p1 + p2).equals("rockscissors") || (p1 + p2).equals("paperrock")
are all conditions of the if statament and if any of them are met then the player that wins will be 1.
When it says
int p =
at the start it is stating what will the 1 : 2 equal after the if statment.