https://jsfiddle.net/v84pnatf/
<label>
<input type="radio" name="item" value="1"> Камень
</label>
<label>
<input type="radio" name="item" value="2"> Ножницы
</label>
<label>
<input type="radio" name="item" value="3"> Бумага
</label>
<input type="button" id="button" value="Button">
<div id="res"></div>
<style>label{display:block}</style>
<script>
button.onclick=function(){
const user=+document.querySelector('[name="item"]:checked').value;
const npc=Math.floor(Math.random()*3)+1;
const userWin=npc===(user%3+1);
res.innerHTML=(user===npc)?'Ничья':'Вы '+(userWin?'победили':'проиграли')
+'<br/>'
+'Оппонент показал '+(npc===1?'камень':(npc===2?'ножницы':'бумагу'));
};
</script>