정주희

2루타 수정

...@@ -101,7 +101,7 @@ function pre_algorithm(){//algorithm(hitter_list1, hitter_list2, pitcher1, pitch ...@@ -101,7 +101,7 @@ function pre_algorithm(){//algorithm(hitter_list1, hitter_list2, pitcher1, pitch
101 document.getElementById('jstest').innerHTML+=("2루타!"); 101 document.getElementById('jstest').innerHTML+=("2루타!");
102 102
103 } 103 }
104 - if(0.4 < num2 && num2 <=0.7){ 104 + else if(0.4 < num2 && num2 <=0.7){
105 switch(home_away){ 105 switch(home_away){
106 case 1: 106 case 1:
107 score1 = score1 + base3 + base2 + base1; 107 score1 = score1 + base3 + base2 + base1;
......