Skip to content

Commit b92e117

Browse files
committed
다 읽은 json파일 삭제
1 parent b3a3c5a commit b92e117

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ai_team_TNK.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def game_state(self):
4141
def generate_json(prefix, my_position, your_position):
4242
# 상대돌 개수에 따라 탐색하는 범위 조절
4343
search_space = 5
44-
power_list = [2, 7]
44+
power_list = [5]
4545
STONE_DIAMETER = 25 # 반지름
4646

4747
#json저장에 사용됨
@@ -187,8 +187,8 @@ def get_score(my_stone_num, opp_stone_num, my_stone_point, opp_stone_point):
187187
# opp_stone_num -> 남은 상대편 돌의 개수
188188

189189
# 우리 돌을 잃으면 -3, 상대 돌을 까면 +2 => 최종 점수 계산 후 최대값 도출
190-
my_score = my_stone_num * 4 + my_stone_point # 떨어진 우리 돌의 개수 * 5
191-
opp_score = (7 - opp_stone_num) * 10 + opp_stone_point # 떨어진 상대 돌의 개수 * + 30
190+
my_score = my_stone_num * 4 # 떨어진 우리 돌의 개수 * 5
191+
opp_score = (7 - opp_stone_num) * 10 # 떨어진 상대 돌의 개수 * + 30
192192

193193
total_score = my_score + opp_score # 최종 점수 도출
194194

@@ -235,6 +235,9 @@ def get_high_score_cases(filenames, count):
235235
)
236236
priority += 1
237237

238+
# 다 읽은 파일 삭제
239+
os.remove(filename)
240+
print(filename)
238241
cases = []
239242

240243
for i in range(0,count):

0 commit comments

Comments
 (0)