☰
✕
Главная
© 2002 - 2025
Diary.ru
Вести из codeacademy
xe-xe-my-strange-life
| среда, 21 ноября 2012
var RPCgame = function(input1,input2){ if (input1 = 'rock', input2 = 'rock') {console.log('draw');} else if (input1 = 'rock', input2 = 'paper') {console.log('Paper wraps rock, player 2 win!');} else if (input1 = 'rock', input2 = 'scissors') {console.log('Scissors break on stone, player 2 win');} else if (input1 = 'paper', input2 = 'rock') {console.log('Paper wraps rock, player 1 win!');} else if (input1 = 'paper', input2 = 'paper') {console.log('draw');} else if (input1 = 'paper', input2 = 'scissors') {console.log('Scissors cut paper, player 2 win');} else if (input1 = 'scissors', input2 = 'rock') {console.log('Scissors break on stone, player 1 win');} else if (input1 = 'scissors', input2 = 'paper') {console.log('Scissors cut paper, player 1 win');} else if (input1 = 'scissors', input2 = 'scissors') {console.log('draw');} else {console.log('Something wrong!');}}; RPCgame('rock','scissors');
Забавы
а в соседнем окне смешанный из php и html код битрикса, и он совсем другие эмоции вызывает...
Смотрите также
Сложный день
День города
Прощание в Цинхэ, мой кавер
- - -
турбобонус
Читательский дневник