Rock paper scissors game using Javascript