JUSTICE & INJUSTICE — two 2-player finite games There is a non-empty finite set $\ K,\ $ say, of plates. Initially, there are $\ p_0(k)\ $ stones on the $k$-th plate, where
$\ p_0(k)\in\mathbb Z_{_{\ge0}}\ $ for each $\ k\in K.$
So far, it is like a NIM game, and even the moves look similar. Namely, a move amounts to removing a positive number of stones from an arbitrary single plate, i.e. the $\ n$-th move creates a function
$\ p_n:K\to\mathbb Z_{_{\ge0}}\ $ such that
$\ p_n(k)=p_{n-1}(k)\ $ for every plate
$\ k\in K$ but for one plate $\ \kappa_n\in K\ $ for which
$\,\ 0\le p_n(\kappa_n)<p_{n-1}(\kappa_n).$
But now, we diverge from NIM games. The game is finished the moment $\ p_n\ $ is a constant function; since then, there are no more legal moves.
In JUSTICE game, the winner is the one who played the last move.
In INJUSTICE, the winner is the first player who cannot make a legal move.
REMARK  If $\ p_0\ $ is the constant $0$-function then the first payer won INJUSTICE while the second player won JUSTICE.

Question Who wins which game (as a function of $\ |K|\ $ and
$\ p_0)?$



After I created the games JUSTICE & INJUSTICE, I posted them on day 2007-06-14, on alt.pl.matematyka:
https://alt.pl.matematyka.narkive.com/Nzi0PiPA/justice-and-injustice-new-games-created-by-wlod-wh
 A: Here is a complete winning strategy for the Justice game.
One wins the Justice game simply by following the usual Nim strategy, with all the same winning positions and moves (except if the position is already constant and with an odd number of piles).
The usual winning Nim strategy is to create a Nim-balanced position, balanced in the sense that if each pile is represented as a sum of distinct powers of two, then each power of two occurs an even number of times overall for the position. The main Nim observation is that if a position is unbalanced, then there is a balancing move, and if a position is balanced, every move is unbalancing.
The key observation for the Justice game is that one can never move from a balanced Nim position to a winning Justice position.
If the number of plates is even, this is clear, since any constant position with an even number of plates is also Nim balanced, but every move on a balanced Nim position will unbalance it.
If the number of plates is odd, then to move to a constant position, one must have reduced a tall pile to match the constant height. Since the rest of the position would have an even number of same-height piles, that part would be balanced by itself, and so if the whole position had been balanced before, the tall pile must have had height 0, impossible. (Thanks to a comment of Edward Lockhart on Twitter.)
So by playing the Nim balancing moves, one will win Justice.
