kotline program showing "Unhandled Exception: Input string was not in a correct format."
I don't know what's wrong with this code can anyone tell me why it's showing an error code: fun main(args: Array<String>) { var ComputersChoice="" var PlayerChoice="" var RandomNumber=(1..3).random() if(RandomNumber==1){ ComputersChoice="ROCK" }else if(RandomNumber==2){ ComputersChoice="PAPER" }else{ ComputersChoice="SCISSORS" } println("\nEnter Your Choice: ROCK,PAPER,or,SCISSORS") PlayerChoice=readln().uppercase() if(ComputersChoice==PlayerChoice) { println("it's Draw *----*") }else if(ComputersChoice=="ROCK" && PlayerChoice=="SCISSORS" || ComputersChoice=="PAPER" && PlayerChoice=="ROCK" || ComputersChoice=="SCISSORS" && PlayerChoice=="PAPER"){ println("You Lost -_-") }else{ println("You Won :)") } }