コード例 #1
0
ファイル: main.py プロジェクト: MatWich/Pokemon-Console-Game
# Player's Pk
YoursPk, EnemysPk = config.GiveAway(config.PokemonList)
 
# Player's n stuff
strPlayer1 = bcolors.OKRED + 'Ash' + bcolors.ENDC
Player1 = Player(strPlayer1, 100, YoursPk, config.Player1Set)

strPlayer2 = bcolors.OKBLUE + 'Gary' + bcolors.ENDC
Player2 = Player(strPlayer2, 999, EnemysPk, config.Player2Set)

''' GAME STARTS '''
config.delayPrint(Player2.name + ' wants to fight!' + '\n')

# Chosing Pk that you want to fight for you
P1Pokemon= Player1.choosePokemon()
P2Pokemon = Player2.choosePokemon()
Pokemon1 = Player1.pokemonQuantity[P1Pokemon]
Pokemon2 = Player2.pokemonQuantity[P2Pokemon]

turn = 1
czyPoczatekWalki = 0    # 0 No 1 Yes
#MainLoop
run = True
while run:

    # Checking winning conditions
    Player1.Lose(Player2)
    Player2.Lose(Player1)

    # Checking PoKemon status