import math
flag = 0
s_VisualPresentation = 0
s_Aesthetics_UI = 0
s_Music = 0
s_Sound = 0
s_Voice = 0
s_Tech = 0
s_Mechanics_LD = 0
s_Interact_Control = 0
s_Story = 0
s_Fun = 0
s_Challenge = 0
s_Integrity = 1
s_Life = 0
s_Total = 0
s_Plot = 0
s_Character = 0
s_Settings = 0
s_Animation = 0
s_BGM = 0
s_VoiceActing = 0
s_misc = 0
s_modifier = 0
def GameSum():
global s_Total, flag, s_Life
s_Life = math.sqrt(s_Fun * s_Challenge)
if s_Mechanics_LD < 0 or (s_Interact_Control < 0 and s_Life == 0):
s_Life = 3
s_Total = s_VisualPresentation * 0.15 + s_Aesthetics_UI * 0.1 + s_Music * 0.05 + s_Sound * 0.05 + s_Voice * 0.05 + s_Tech * 0.1 + s_Mechanics_LD * 0.2 * (1 + s_Life/10) + s_Interact_Control * 0.2 * (1 + s_Life / 10) + s_Story * 0.1
if flag == 1:
s_Total = s_Total / 0.95
if s_Integrity != 1:
s_Total = s_Total * s_Integrity
return s_Total
def AnimeSum():
global s_Total, flag
s_Total = s_Plot * 0.2 + s_Character * 0.2 + s_Settings * 0.1 + s_Animation * 0.15 + s_BGM * 0.15 + s_VoiceActing * 0.15 + s_misc * 0.05
if flag == 1:
s_Total = s_Total / 0.85
return s_Total
def GameReview():
global s_Total, s_VisualPresentation, s_Aesthetics_UI, s_Music, s_Sound, s_Voice, s_Tech, s_Mechanics_LD, s_Interact_Control, s_Story, s_Fun, s_Challenge, s_Integrity
print("========SGN Game Review========")
s_VisualPresentation = int(input("Input Visual Presentation score: "))
s_Aesthetics_UI = int(input("Input Aesthetics/UI score: "))
s_Music = int(input("Input Music score: "))
s_Sound = int(input("Input Sound score: "))
s_Voice = int(input("Input Voice score: "))
if s_Voice == 0:
flag = 1
s_Tech = int(input("Input Technique(optimization, camera, physics effect) score: "))
s_Mechanics_LD = float(input("Input Gameplay-Mechanics/Level Design score: "))
s_Interact_Control = float(input("Input Gameplay-Interact/Control score: "))
s_Story = float(input("Input Story/World setting/Characters score: "))
s_Fun = int(input("Input Fun/Appeal coefficient(1,2,3): "))
s_Challenge = int(input("Input Type of Game engagement(0,1,2,3): "))
s_Integrity = float(input("Input Integrity of the Game if not 100%(0~1): "))
print("Calculating Total Score...")
print("Total score:", GameSum())
def AnimeReview():
global s_Total, s_Plot, s_Character, s_Settings, s_Animation, s_BGM, s_VoiceActing, s_misc, s_modifier
print("========SGN Anime Review========")
s_Plot = int(input("Input Plotting score: "))
s_Character = int(input("Input Character score: "))
s_Settings = int(input("Input Settings(background, design) score: "))
s_Animation = int(input("Input Animation score: "))
s_VoiceActing = int(input("Input Voice Acting score: "))
if s_VoiceActing == 0:
flag = 1
s_BGM = int(input("Input BGM score: "))
s_misc = int(input("Input other (action design, performance, effect) score: "))
print("Calculating Total Score...")
rank = int(input("Input modifier rank: (0, 1, 2): "))
if rank == 1:
s_modifier = 0.92
elif rank == 2:
s_modifier = 0.98
else:
s_modifier = 0.86
print("Total score:", AnimeSum()*s_modifier)
def main():
AnimeReview()
# GameReview()
if __name__ == "__main__":
main()
Run to view results