コード例 #1
0
ファイル: main.py プロジェクト: MatWich/Pokemon-Console-Game
        ''' PLAYER1'S TURN '''
        turn += 1
        # wypisanie statystyk LP
        print('\n' + bcolors.BOLD + Player1.name +" Pks:" + bcolors.ENDC)
        Pokemon1.printHp()
        print('\n' + bcolors.BOLD + Player2.name +" Pks:" + bcolors.ENDC)
        Pokemon2.printHp()
        print('\n')

        # wybranie akcji
        choice = Pokemon1.ChooseAction()
            
        # wypisanie atakow
        if choice == 1:
            atkChoice = Pokemon1.ChooseAttack()
            Player1, Player2 = Player1.PokemonDamageCalculation(Player2, P1Pokemon, P2Pokemon, atkChoice)
        
        # ITEMS
        elif choice == 2:
            Player1.ItemDamageCalculation(Player2)    
            
        # RUN BERRY RUN
        elif choice == 3:
            print(bcolors.BOLD + Player1.name + bcolors.BOLD +' escaped' + bcolors.ENDC)
            exit(0)
            
        # NOPE!!!
        else:
            print('There is no option ', choice)
            break
    elif turn % 2 == 1: