File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,10 @@ function Start()
60
60
61
61
orderNumberField . innerText = orderNumber ++ ;
62
62
answerField . innerText = `${ nextAnswerPhrases [ 0 ] } ${ IntToText ( answerNumber ) } ?` ;
63
-
64
- if ( firstRun )
65
- {
66
- modalStartAlertText . innerText = `Загадайте любое целое число от ${ minValue } до ${ maxValue } , а я его угадаю` ;
67
- modalStartAlert . modal ( "show" ) ;
68
- firstRun = false ;
69
- }
63
+
64
+ modalStartAlertText . innerText = `Загадайте любое целое число от ${ minValue } до ${ maxValue } , а я его угадаю` ;
65
+ modalStartAlert . modal ( "show" ) ;
66
+ firstRun = false ;
70
67
}
71
68
72
69
// Перевод числовой записи в пропись
@@ -172,7 +169,7 @@ document.querySelector('#btnLess').addEventListener('click', function () {
172
169
gameRun = false ;
173
170
} else { //Продолжить поиск ниже
174
171
maxValue = answerNumber - 1 ;
175
- answerNumber = Math . floor ( ( minValue + maxValue ) / 2 ) ;
172
+ answerNumber = Math . ceil ( ( minValue + maxValue ) / 2 ) ;
176
173
orderNumberField . innerText = orderNumber ++ ;
177
174
178
175
const phraseRandom = Math . round ( Math . random ( ) * ( nextAnswerPhrases . length - 1 ) ) ;
You can’t perform that action at this time.
0 commit comments