def AddAIPlayer(): nonlocal NewGame NewGame.AIPlayerCount += 1 newplayer = Player("AI Player " + str(NewGame.AIPlayerCount), True, NewGame) newplayer.PlayerColor = (random.randint(25,255), random.randint(25,255), random.randint(25,255)) NewGame.Players.append(newplayer)
def AddHumanPlayer(): nonlocal NewGame NewGame.HumanPlayerCount += 1 newplayer = Player("Human Player " + str(NewGame.HumanPlayerCount), False, NewGame) newplayer.PlayerColor = (random.randint(25,255), random.randint(25,255), random.randint(25,255)) NewGame.Players.append(newplayer)