File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ document.getElementById('btnOver').addEventListener('click', function () {
6565 answerField . innerText = answerPhrase ;
6666 gameRun = false ;
6767 } else {
68- minValue = answerNumber + 1 ;
68+ minValue = answerNumber ;
6969 answerNumber = Math . floor ( ( minValue + maxValue ) / 2 ) ;
7070 orderNumber ++ ;
7171 orderNumberField . innerText = orderNumber ;
@@ -114,7 +114,7 @@ document.getElementById('btnLess').addEventListener('click', function () {
114114 answerField . innerText = answerPhrase ;
115115 gameRun = false ;
116116 } else {
117- maxValue = answerNumber + 1 ;
117+ maxValue = answerNumber ;
118118 answerNumber = Math . floor ( ( minValue + maxValue ) / 2 ) ;
119119 orderNumber ++ ;
120120 orderNumberField . innerText = orderNumber ;
You can’t perform that action at this time.
0 commit comments