ichabod801 / t_games

A collection of command-line interface games written in Python.
GNU General Public License v3.0
20 stars 4 forks source link

Backgammon check_win error #543

Closed ichabod801 closed 4 years ago

ichabod801 commented 4 years ago

With one piece on 1, I got double 4's. I did a bear with no arguments, and got this error:

  File "C:\Users\Craig\Documents\t_games\board_games\backgammon_game.py", line 1207, in 
    game_over
    human_win = self.check_win(self.pieces[self.human])
  File "C:\Users\Craig\Documents\t_games\board_games\backgammon_game.py", line 967, in 
    check_win
    if self.board.find(other_piece, home + [BAR]):
TypeError: unsupported operand type(s) for +: 'range' and 'list'
ichabod801 commented 4 years ago

Turned out to be a 3.x error, but that's kind of what I expected.