but when I tried to make a two player battle function where each player gets a chance to hit other (just like Pokemon but the second player is your friend and not the computer) I was confused and didn't knew where to start...
format to write a two player battle function where layer 1 strikes first and then player 2 strikes...... this goes on until one of the player dies......