Returns a number describing the current index of the player.
number
function getPlayerIndex(state) { return state.player.index; }