sortedWinnerIndices = winnerIndices[-numActive:][::-1]
Can someone tell me what is going on here?
WinnerIndices is 2048 ints long, Numpy array. I read somewhere that [::-1] reverses the result but I still can't figure out how this function selects a subset of winnerIndices?