Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions css-ass/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
h1{text-align: center;}
div.chapter-name{font-weight:bold;}
#content-box{
background-color:greenyellow;
}
div.chapter>div.horizontal-lists{color:blue;}
#current-chapter{color:red;}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좌우여백 ! padding이 없어요
#box-layout 등에 padding-left, padding-right 또는
padding: 0 10% 등의 방법으로 여백 주시면 괜찮을 것 같아요

20 changes: 17 additions & 3 deletions js-ass/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,23 @@ const checkGuess = () => {


guesses.textContent += userGuess + ' ';
// TODO
// 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출
// guess Count가 10이 될 경우 game over
if(guessCount==10){
gameOver()
resetGame()
}

while(guessCount!=10){
if(userGuess<randomNumber){
isLow();
}
else if(userGuess>randomNumber){
isHigh();
}
else{
collect();
}
}

guessCount++;
guessField.value = '';
guessField.focus();
Expand Down