Auto Commit

上级 d0dfb9cd
...@@ -44,15 +44,15 @@ function emojiOf(choice) { ...@@ -44,15 +44,15 @@ function emojiOf(choice) {
function determineOutcome(playerChoice, computerChoice) { function determineOutcome(playerChoice, computerChoice) {
if (playerChoice === computerChoice) { if (playerChoice === computerChoice) {
return "打平了!"; return " draw ";
} else if ( } else if (
(playerChoice === "scissors" && computerChoice === "paper") || (playerChoice === "scissors" && computerChoice === "paper") ||
(playerChoice === "rock" && computerChoice === "scissors") || (playerChoice === "rock" && computerChoice === "scissors") ||
(playerChoice === "paper" && computerChoice === "rock") (playerChoice === "paper" && computerChoice === "rock")
) { ) {
return "你赢了!"; return "😊 wins !";
} else { } else {
return "你输了!"; return "🤖️ wins !";
} }
} }
...@@ -41,9 +41,9 @@ button:hover { ...@@ -41,9 +41,9 @@ button:hover {
#result { #result {
font-size: 2rem; font-size: 2rem;
margin: 10px; margin: 10px;
left: 50%; width: 60%;
top: 50%; text-align: center;
transform: translate(-50%, -50%); height: 50%;
} }
...@@ -52,7 +52,7 @@ button:hover { ...@@ -52,7 +52,7 @@ button:hover {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
width: 80%; width: 100%;
} }
...@@ -61,5 +61,6 @@ button:hover { ...@@ -61,5 +61,6 @@ button:hover {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; 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.
先完成此消息的编辑!
想要评论请 注册