The famous game of Juniper Green implemented with Pyxel (https://github.com/kitao/pyxel).

Two players take turns playing Juniper Green.

Player one starts by choosing an even number.

Each turn, a player selects a remaining number that's either a factor or a multiple of the opponent's previous choice.

The first player unable to select a number loses.