diff --git a/script.js b/script.js index a8d9d37230fef2271e224107a333d80b9d3140fa..daa7d95bfd20d8380826a9cab2a489ef4e037024 100644 --- a/script.js +++ b/script.js @@ -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 !"; } } diff --git a/style.css b/style.css index 6182b47a04cc710f1c03482ee2bb9a74d2fc3fac..4d1fdbd4d710707c6094e8ee8b3add7309613883 100644 --- a/style.css +++ b/style.css @@ -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