정주희

complete(except introduction)

This diff is collapsed. Click to expand it.
......@@ -138,7 +138,7 @@ body{
border-radius:5px;
}
.tb{
padding: 10px 0px 0px 135px;
padding: 10px 0px 0px 90px;
}
table{
border: 1px solid #444444;
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
function pre_algorithm(){//algorithm(hitter_list1, hitter_list2, pitcher1, pitcher2) => html에서 가지고와야 한다.
function pre_algorithm(hitter_list1, hitter_list2, pitcher1, pitcher2){//algorithm(hitter_list1, hitter_list2, pitcher1, pitcher2) => html에서 가지고와야 한다.
var base1 = 0; var base2 = 0; var base3 = 0; //1이면 주자 있고 0이면 비어있는것
var out = 0; var ining = 1; var home_away = 1;//아웃카운트, 이닝, home이면 1이고 away이면 2.
var score1 = 0; var score2 = 0;
......@@ -26,13 +26,13 @@ function pre_algorithm(){//algorithm(hitter_list1, hitter_list2, pitcher1, pitch
}
if(home_away == 1){
var hitter = kia_hitter[hitter_num1]; //hitter = hitter_list1[hitter_number1%9]
var pitcher = dusan_pitcher[1]; //pitcher = pitcher1
var hitter = hitter_list1[hitter_num1]; //hitter = hitter_list1[hitter_number1%9]
var pitcher = pitcher2; //pitcher = pitcher1
document.getElementById('jstest').innerHTML+=(ining+ "회 초"+ "<br\><br\>");
}
else if(home_away == 2){
var hitter = dusan_hitter[hitter_num2]; //hitter = hitter_list2[hitter_number2%9]
var pitcher = kia_pitcher[1]; //pitcher = pitcher2
var hitter = hitter_list2[hitter_num2]; //hitter = hitter_list2[hitter_number2%9]
var pitcher = pitcher1; //pitcher = pitcher2
document.getElementById('jstest').innerHTML+=(ining+ "회 말"+ "<br\><br\>");
}
......