작동시키면 저따구로 나오는데 원래대로라면 영어를 선택해서 system > You choose the Englich. Enjoy the game. 이런식으로 나와야하는데 어째선지 맨처음에 2를 입력했을때 나올게 나오네요. 코드는 여기 적겠습니다. 참고로 visual studio로 파이썬 한겁니다.


##함수

def DrawTitle() :

    is_loop = 1

    while is_loop == 1 :

        print("****************************************")

        print("*         WELCOME TO THE GAME!         *")

        print("****************************************")

        print("1. GAME START")

        print("2. GAME EXIT")

        player_input = input("Please enter(1~2) : ")

        if player_input == '1' :

            is_loop = 0

        elif player_input == '2' :

            is_loop = 0

        else :

            print("system > Not correct answer. Please select again.")

    return player_input


def DrawGameturn() :

    is_loop = 1

    while is_loop == 1 :

        print("system > Would you like to run the game?")

        print("system > 1. Restart  2.End The Game")

        player_turn = input("system > Please enter(1~2) : ")

        if player_turn == '1' :

            is_loop = 0

        elif player_turn == '2' :

            is_loop = 0

        else :

            print("system > Not correct answer. Please select again.")

    return player_turn


def DrawLanguage() :

    is_loop = 1

    while is_loop == 1 :

        player_language = input("Please enter(1~3) : ")

        if player_language == '1' :

            is_loop = 0

        elif player_language == '2' :

            is_loop = 0

        elif player_language == '3' :

            is_loop = 0

        else :

            print("system > Not Correct Answer. Please select again.")

    return player_language


def DrawMainGameKo() :

    is_loop = 1

    while is_loop == 1 :

        player_moveko = input("system > 움직일 방향을 입력해주세요(1~4) : ")

        if player_moveko == '1' :

            print("위로 한 칸")

            is_loop = 0

        elif player_moveko == '2' :

            print("아래로 한 칸")

            is_loop = 0

        elif player_moveko == '3' :

            print("왼쪽으로 한 칸")

            is_loop = 0

        elif player_moveko == '4' :

            print("오른쪽으로 한 칸")

            is_loop = 0

        else :

            print("없는 동작입니다. 다시 해주세요.")

    return player_move


def DrawMainGameEn() :

    is_loop = 1

    while is_loop == 1 :

        player_moveen = input("system > Please enter the direction to move(1~4) : ")

        if player_moveen == '1' :

            print("One space up")

            is_loop = 0

        elif player_moveen == '2' :

            print("One space down")

            is_loop = 0

        elif player_moveen == '3' :

            print("One space to the left")

            is_loop = 0

        elif player_moveen == '4' :

            print("One space to the right")

        else :

            print("This is no behavior. Please do it again.")

    return player_move


def DrawMainGameJa() :

    is_loop = 1

    while is_loop == 1 :

        player_moveja = input("system > 移動方向を入力してください(1~4) : ")

        if player_moveja == '1' :

            print("上した1カーン")

            is_loop = 0

        elif player_moveja == '2' :

            print("下に1カーン")

            is_loop = 0

        elif player_moveja == '3' :

            print("左に1カーン")

            is_loop = 0

        elif player_moveja == '4' :

            print("右に1カーン")

            is_loop = 0

        else :

            print("ない動作です。再びください。")

    return player_move


##맵

def DrawMap(g_map, g_player) :

    a = 0

    while i<10:

        if g_player == i :

            print('P', end = '')

        else :

            print(g_map[i], end = '')

        a = a + 1


def DrawMap(g_map, g_player) :

    b = 0

    while i<10:

        if g_player == i :

            print('P', end = '')

        else :

            print(g_map[i], end = '')

        b = b + 1



## 메인코드

player_input = DrawTitle()


if player_input == "1" :

    print("Choose the language")

    print("1. Engilsh")

    print("2. 한국어")

    print("3. 日本語")

    DrawLanguage()


if player_input == "2" :

    print("system > Exit The Game")

    DrawGameturn()


player_turn = DrawGameturn()


if player_turn == "1" :

    print("system > Restart the Game")

    DrawTitle()


if player_turn == "2" :

    print("system > Program End")


player_language = DrawLanguage()


if player_language == "1" :

    print("system > You choose the Englich. Enjoy the game.")

    DrawMainGameEn()


if plyer_language == "2" :

    print("system > 한국어를 선택하셨습니다. 즐거운 게임되세요.")

    DrawMainGameKo()


if player_language == "3" :

    print("system > 日本語を選択した。楽しいゲームになれます。")

    DrawMainGameJa()


player_moveko = DrawMainGameKo()


if player_moveko == "1" :

    b = b + 1


if player_moveko == "2"  :

    b = b - 1


if player_moveko == "3" :

    a = a + 1


if player_moveko == "4" :

    a = a - 1


player_moveen = DrawMainGameEn()


if player_moveen == "1" :

    b = b + 1


if player_moveen == "2"  :

    b = b - 1


if player_moveen == "3" :

    a = a + 1


if player_moveen == "4" :

    a = a - 1


player_moveja = DrawMainGameJa()


if player_moveja == "1" :

    b = b + 1


if player_moveja == "2"  :

    b = b - 1


if player_moveja == "3" :

    a = a + 1


if player_moveja == "4" :

    a = a - 1