I've added tests to the functions that determine the next move of the computer so that I can refactor the game play (which is needed for #8) without introducing bugs.
Changes have been made to get_pattern_1_move(), get_pattern_2_move() and winner() functions. I've added arguments so that I can test in a functional/pure manner.
I've added tests to the functions that determine the next move of the computer so that I can refactor the game play (which is needed for #8) without introducing bugs.
Changes have been made to
get_pattern_1_move()
,get_pattern_2_move()
andwinner()
functions. I've added arguments so that I can test in a functional/pure manner.