eudaemon@liu:~/downloads/4digits-0.3$ ./4digits
Input a 4-digit number:1234
0A2B 7 times left.
Input a 4-digit number:1256
1A3B 6 times left.
Input a 4-digit number:1265
0A4B 5 times left.
Input a 4-digit number:2156
2A2B 4 times left.
Input a 4-digit number:2651
1A3B 3 times left.
Input a 4-digit number:2561
2A2B 2 times left.
Input a 4-digit number:2516
4A0B 1 times left.
You win in 42 sec.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
eudaemon@liu:~/downloads/4digits-0.3$ ./4digits
Input a 4-digit number:1234
0A2B 7 times left.
Input a 4-digit number:1256
1A3B 6 times left.
Input a 4-digit number:1265
0A4B 5 times left.
Input a 4-digit number:2156
2A2B 4 times left.
Input a 4-digit number:2651
1A3B 3 times left.
Input a 4-digit number:2561
2A2B 2 times left.
Input a 4-digit number:2516
4A0B 1 times left.
You win in 42 sec.