Unique lil game. It definitely has a unique solution too.
Probably not the way I was supposed to solve it but here is the python script I made to find the answer :)
(in rot13 cuz thats the trend i guess):
fbyhgvbaf = [] # Ybbc guebhtu nyy cbffvoyr pbqrf naq zngpu gurz gb gurve uvag nafjref sbe v va enatr(0, 10000): pbqr = [vag(qvtvg) sbe qvtvg va fge(v).msvyy(4)] # Uvagf 1 naq 4 arrq gb or snyfr sbe erqhaqnapl uvag = [Snyfr, Snyfr, Snyfr] vs pbqr[0] == 1 be pbqr[0] % 2 == 0: pbagvahr vs pbqr[1] == 2: uvag[0] = Gehr vs pbqr[2] == 3: uvag[1] = Gehr vs pbqr[3] > fhz(pbqr[:3]): uvag[2] = Gehr fbyhgvbaf.nccraq([pbqr, uvag]) # Pbhag bppheeraprf bs rnpu havdhr uvag uvag_pbhagf = {} sbe _, uvag va fbyhgvbaf: uvag_ghcyr = ghcyr(uvag) uvag_pbhagf[uvag_ghcyr] = uvag_pbhagf.trg(uvag_ghcyr, 0) + 1 # Cevag pbqrf jvgu havdhr uvagf sbe pbqr, uvag va fbyhgvbaf: vs uvag_pbhagf[ghcyr(uvag)] == 1: cevag(pbqr)