Does any one have any idea why the below is evaluating to True?
board[y_new:y_new + self.size, x_new:x_new + self.size]
array([[[ 75, 0, 130],
[ 75, 0, 130],
[ 75, 0, 130]],
[[ 75, 0, 130],
[ 75, 0, 130],
[ 75, 0, 130]],
[[ 75, 0, 130],
[ 75, 0, 130],
[ 75, 0, 130]]], dtype=uint8)
Above is my array.
When I check if a value is in the array col = np.array([255, 0, 64]) like this...
col in board[y_new:y_new + self.size, x_new:x_new + self.size]
I get
True
Its early in the morning and I still need my coffee but this makes NO sense to me right now.
indoes not work as you expect it to do for numpy arrays.