Auto Commit

上级 d0dfb9cd
......@@ -44,15 +44,15 @@ function emojiOf(choice) {
function determineOutcome(playerChoice, computerChoice) {
if (playerChoice === computerChoice) {
return "打平了!";
return " draw ";
} else if (
(playerChoice === "scissors" && computerChoice === "paper") ||
(playerChoice === "rock" && computerChoice === "scissors") ||
(playerChoice === "paper" && computerChoice === "rock")
) {
return "你赢了!";
return "😊 wins !";
} else {
return "你输了!";
return "🤖️ wins !";
}
}
......@@ -41,9 +41,9 @@ button:hover {
#result {
font-size: 2rem;
margin: 10px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 60%;
text-align: center;
height: 50%;
}
......@@ -52,7 +52,7 @@ button:hover {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 80%;
width: 100%;
}
......@@ -61,5 +61,6 @@ button:hover {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 80%;
width: 100%;
margin-bottom: 20%;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册