kcwu / 2048-python

2048 ai in python
BSD 3-Clause "New" or "Revised" License
77 stars 48 forks source link

Not able to create an instance of AI class in multi processing mode #3

Open SahithKumarrko opened 3 years ago

SahithKumarrko commented 3 years ago

I am trying to use a part of your code and i was stuck at an Error: TypeError:
Traceback (most recent call last)

in () 35 return grid 36 ---> 37 ai = AI() in build_move_table(self) 140 row_moved = tuple(move_row(row)) --> 142 if max(row_moved) > max_cell: 143 self.move_table[idx] = -1 144 else: TypeError: '>' not supported between instances of 'NoneType' and 'int'
ihrishix commented 3 years ago

@SahithKumarrko Is this project still open ?

kcwu commented 3 years ago

This error is caused by the incompatibility between python2 and python3. PR is welcome.

This project is no longer developed. I will only accept PR to fix issues like this.