Menu

#53 Trefoil: Exception in Tkinter callback

v1.0 (example)
closed
nobody
None
5
2022-08-07
2022-07-27
Jason
No

Similar to https://sourceforge.net/p/pysolfc/bugs/45/

Traceback (most recent call last):
  File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
    return self.func(*args)
  File "/usr/lib/python3.10/site-packages/pysollib/actions.py", line 484, in mDeal
    self.game.dealCards()
  File "/usr/lib/python3.10/site-packages/pysollib/game/__init__.py", line 1929, in dealCards
    self.finishMove()
  File "/usr/lib/python3.10/site-packages/pysollib/game/__init__.py", line 3003, in finishMove
    a1.cmpForRedo(a2) != 0:
  File "/usr/lib/python3.10/site-packages/pysollib/move.py", line 476, in cmpForRedo
    cmp(self.state, other.state))
  File "/usr/lib/python3.10/site-packages/pysollib/move.py", line 28, in cmp
    return ((b > a)-(a > b))
TypeError: '>' not supported between instances of 'method' and 'method'

Steps to reproduce error:

1: Start new game of Trefoil
2: Push 'D' (Draw to immediately go to Round 2)
3: Play any valid play
4: Push 'Z' (Undo)
5: Push 'Z' (Undo to go back to Round 1)
6: Push 'D' (Draw to go back to Round 2)

You should see the error now.

Discussion

  • Joe R.

    Joe R. - 2022-07-27

    This is the same issue as https://sourceforge.net/p/pysolfc/bugs/48/. It has already been resolved as of the latest code.

     
  • Joe R.

    Joe R. - 2022-08-07
    • status: open --> closed
     

Log in to post a comment.