Skip to content

Commit

Permalink
fixed draw
Browse files Browse the repository at this point in the history
  • Loading branch information
mifthulyn07 committed Apr 29, 2024
1 parent 328e03e commit 71b8680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function result(computer, user) {
if (computer == user) {
user = 0;
computer = 0;
document.querySelector(".info .desc p").innerHTML = "";
document.querySelector(".info .desc p").innerHTML = "DRAW";
} else if (computer == "scissors") {
if (user == "rock") {
user = 1;
Expand Down

0 comments on commit 71b8680

Please sign in to comment.