function - Python class taking in only two arguments? -


Then I have a python class named player () for which there are 20 arguments a simple combat algorithm problem is, when I import combat function Player () and a main file, and I have been imported correctly, then I get the error:

  traceback (make the most recent last call): file "c: \ user \ Thomas \ desktop \ paradisium \ main_draft.py", the row 53, & lt; Module & gt; 'Speed', 'agility', 'patient', 'Hitpoint' Acpiargen 'Ipiargen' Mulacpi 'original AP', 'Apiaraan' original 'AP', 'original MP' MP 'Mjikregen' Mjike Defens 'Mjikttak' Dibf 'Bref' Sattaip 'weapons' and 'name'  

as you can see Due to this, it is importing correctly and due to grabbing the player () class, due to some reason it only takes in two V-variables which are defined here: / P>

  feeding 1 = Player (90,20,50,90,20,1000, .03,1,1000,20,20,20,1,90,100,2,2,3, none, "Sword Murdoch")  

I do not know whether I am importing something wrong or something, and I am sure there is no limit to variables in the class.

Edit, here is the code:

player () category:

  class player (object): def __init __ (self, physical attack, defense, speed, agility, endurance, Hitpoint, Acpiargen, Ipiargen, original HP original EP, the original MP, MP, M Jikregen, Mjike Defens, Mjikettak, Debf, Bref, Sattaip, arms, name ):  

combat () function:

  Def combat (player 1, player 2):  < / Pre> 

those lines where the main file Is being imported:

  import fighter algorithm Draft Player = combatAlgorithmDraft.Player combat = Fighter algorithm Draftkpleyr  

where those lines are key file Calling in:

  player1 = player (90,20,50,90,20, 1000, .03,1,1000,20,20,20,1,90,100,2 , 2,3, none, "Sword Murdoch") player 2 = player (60,70,60,50,20,1100, 01,1,1100,20,0,0,0,60,0,2,2 , 2.00, "The Black Knight") (player 1, player 2)  

  combat = combatAlgorithmDraft.Player  

Did you mean to do this?

  combat = combatAlgorithmDraft.combat  

In any case, other modules namespace rent traditional way of importing things

Combat algorithm draft import player from
 , match  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -