Script started on 2024-10-02 16:10:19-02:30 [TERM="xterm" TTY="/dev/pts/11" COLUMNS="80" LINES="24"] $ python3 altNim.py format: altNim.py humanFirst? startOdd? maxDepth(>0) givenSticks(>1) $ python3 altNim.py True True 2 15 Welcome to altNim! Human plays first Odd move first 2 move lookahead 15 initial matchsticks Game Move # 1 (Human): 15 matchsticks remaining Best value of 10 obtained by recommended action -1: Action? Game Move # 2 (Machine): 14 matchsticks remaining Best value of 8 obtained by machine with action -2 Game Move # 3 (Human): 12 matchsticks remaining Best value of 7 obtained by recommended action -2: Action? -4 Game Move # 4 (Machine): 8 matchsticks remaining Best value of 4 obtained by machine with action -1 Game Move # 5 (Human): 7 matchsticks remaining Best value of 2 obtained by recommended action -1: Action? -3 Game Move # 6 (Machine): 4 matchsticks remaining Machine wins on any move $ python3 altNim.py False False 3 15 Welcome to altNim! Machine plays first Even move first 3 move lookahead 15 initial matchsticks Game Move # 1 (Machine): 15 matchsticks remaining Best value of 9 obtained by machine with action -2 Game Move # 2 (Human): 13 matchsticks remaining Best value of 7 obtained by recommended action -1: Action? Game Move # 3 (Machine): 12 matchsticks remaining Best value of 5 obtained by machine with action -1 Game Move # 4 (Human): 11 matchsticks remaining Best value of 4 obtained by recommended action -2: Action? -4 Game Move # 5 (Machine): 7 matchsticks remaining Machine wins on any move $ python3 altNim.py True False 1 8 Welcome to altNim! Human plays first Even move first 1 move lookahead 8 initial matchsticks Game Move # 1 (Human): 8 matchsticks remaining Best value of 6 obtained by recommended action -2: Action? Game Move # 2 (Machine): 6 matchsticks remaining Best value of 5 obtained by machine with action -1 Game Move # 3 (Human): 5 matchsticks remaining Best value of 4 obtained by recommended action -1: Action? Game Move # 4 (Machine): 4 matchsticks remaining Best value of 2 obtained by machine with action -2 Game Move # 5 (Human): 2 matchsticks remaining Human loses on any move $ exit Script done on 2024-10-02 16:13:33-02:30 [COMMAND_EXIT_CODE="0"]