ahira-justice / chess-board

A chess board library for presenting game positions
https://pypi.org/project/chess-board
GNU General Public License v3.0
19 stars 12 forks source link

Nonetype attribute error while following code example #4

Closed TARDIInsanity closed 2 years ago

TARDIInsanity commented 4 years ago

I encountered a Nonetype error that is (presumably) a result of a fault within the included display.py file. One function "start(fen='')" sets a new variable gameboard, but does not set it to the proper type for the following "update(fen)" function to use it. I used: board = display.start(validfen) while not(display.checkForQuit()): board = display.update(validfen, board) time.sleep(0.1) which returned a methods error; Nonetype object does not have method displayBoard. I also notice that board is imported from ., which is concerning. Where does it get board from? What is the board class?

robotrobo commented 4 years ago

i think its the same issue as #2 (now closed), i issued a PR regarding the same.

ahira-justice commented 2 years ago

Fixed

See https://github.com/ahira-justice/chess-board/pull/5#issuecomment-1030420625