Error `is not defined` in python programming -


i have recurring error in code:

line 424, in <module> menu() line 50, in menu main1v1() line 396, in main1v1 showpoints(playertile, opponenttile) line 307, in showpoints scores = getscoreofboard(mainboard) nameerror: name 'mainboard' not defined 

i cannot seem fix it. these 2 definitions trouble believe. coding game called othello, when trying create 1v1 instead of previous 1vai creates problems.

your function showpoints1v1 uses variable mainboard neither defined inside that, nor argument. need define or pass argument while calling it.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -