Skip to content

Commit

Permalink
TargetJson debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyuuu2006 committed Dec 29, 2024
1 parent 9cc425c commit bb26b93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TargetJson.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class LaBaG:
def __init__(self):
self.AllData = dict() #總資料
self.OneData = dict() #單次資料
self.DataIndex = 0

# 遊戲邏輯變數
self.times = 30 #可遊玩次數 正常30
Expand Down Expand Up @@ -100,6 +101,7 @@ def __init__(self):
def reset(self):
"""重置"""
self.AllData = dict()
self.DataIndex = 0

self.played = 0
self.score = 0
Expand Down Expand Up @@ -209,9 +211,10 @@ def margin_add(p: P, typ: int):
def result(self):
"""結果"""
self.played += 1
self.DataIndex += 1
self.score += self.margin_score
self.margin_score = 0
self.AllData[f"{self.played}"] = self.OneData
self.AllData[f"{self.DataIndex}"] = self.OneData

#region 超級阿禾模式(SuperHHH)
def SuperFalse(self):
Expand Down

0 comments on commit bb26b93

Please sign in to comment.