Example of possible permutations
1996
1999
6166
6169
6196
6199
6616
6619
6691
6916
6919
6961
6991
9166
9169
9196
9199
9616
9619
9661
9691
9916
9919
9961
9991
Snippet of py code
import itertools
a = list("1996")
b = []
for i in itertools.permutations(a):
ii = "".join(i)
if 1996 > int(ii):
continue
if "6"*3 in ii:
continue
if ii in b:
continue
b.append(ii)
print("\n".join(sorted(b)))
print(len(b))
#beta version
#beginner friendly
#does not follows all given rules
#18.11.2025 by Skeleton3Skeletor33
14 comments:
unfinished list instructions
instructtions
1. 4 digits long
2. lowest starting year limit
3. no 3 sixes in a row
4. ascending years
5. 9 can turn to 6
6. up to max permutations of given four digits
count possible permutations
no upside down allowed
is that all?
9691 missing. it migth be a good exercise for beginners.
it very confusing game
maybe not with enough practice?
i acan decide black flag
permutations must consists of given 4 digits, all digits that don't mutate with exception that if it's 3 sixes in a row cannot appear you also shouldn't rotate horizontally mobile phone and 6 = 9 and 9 = 6...ugh is that explainex very well...the game can be even harder with more symbols or digits or signs or marks...
characters
i am blown away with this...i am trying to figure this for 3 days
just finish the code with simplest instruction codes.
dl you codes from sm
Post a Comment