Case 1
root@7994b8a9e3ab:/app# ghc 1a2b.hs
Loaded package environment from /root/.ghc/x86_64-linux-9.4.5/environments/default
[1 of 2] Compiling Main ( 1a2b.hs, 1a2b.o ) [Source file changed]
[2 of 2] Linking 1a2b [Objects changed]
root@7994b8a9e3ab:/app# ./1a2b
"Number of digits? (4)"
4
"Is guessed by user? (Y/N)"
N
"Is answered by user? (Y/N)"
Y
"Iter0"
[2,0,8,7]
0 1
"Iter1"
"Possible: 1440 Entropy: 10.491853096329676"
"Select (2.8588645,[9,8,6,5])"
[9,8,6,5]
1 2
"Iter2"
"Possible: 83 Entropy: 6.375039431346925"
"Select (2.8721385,[5,8,4,9])"
[5,8,4,9]
0 3
"Iter3"
"Possible: 12 Entropy: 3.5849625007211565"
"Select (3.2516289,[9,5,3,8])"
[9,5,3,8]
0 2
"Iter4"
"Possible: 1 Entropy: 0.0"
"Select (0.0,[8,9,6,4])"
[8,9,6,4]
4 0
Case 2
root@7994b8a9e3ab:/app# ./1a2b
"Number of digits? (4)"
4
"Is guessed by user? (Y/N)"
N
"Is answered by user? (Y/N)"
N
"Iter0"
[2,7,5,3]
"1A1B"
"Iter1"
"Possible: 720 Entropy: 9.491853096329676"
"Select (2.9461462,[9,8,7,3])"
[9,8,7,3]
"0A2B"
"Iter2"
"Possible: 165 Entropy: 7.366322214245815"
"Select (3.3179908,[5,7,8,6])"
[5,7,8,6]
"1A1B"
"Iter3"
"Possible: 26 Entropy: 4.700439718141093"
"Select (3.459491,[4,7,2,8])"
[4,7,2,8]
"1A0B"
"Iter4"
"Possible: 6 Entropy: 2.584962500721156"
"Select (2.5849626,[6,7,3,1])"
[6,7,3,1]
"1A2B"
"Iter5"
"Possible: 1 Entropy: 0.0"
"Select (0.0,[3,7,6,0])"
[3,7,6,0]
"4A0B"
Case 3
root@7994b8a9e3ab:/app# ./1a2b
"Number of digits? (4)"
4
"Is guessed by user? (Y/N)"
Y
"Is answered by user? (Y/N)"
N
"Iter0"
6087
"0A1B"
"Iter1"
9854
"0A2B"
"Iter2"
5309
"0A2B"
"Iter3"
4920
"0A3B"
"Iter4"
0542
"1A1B"
"Iter5"
0491
"4A0B"