Defines conflicts() to count queen pairs attacking each other along rows and diagonals (the objective function), and show_board() to visualize the board with queens on a checkerboard grid.
A 4-queens board with queens resulting in 4 conflicts due to alignments.
The function runs games between two agents (x and o), alternating moves and checking the board after each turn until someone wins or it's a draw
Shows the board's list representation alongside its visual grid .
The function generates neighboring words by inserting, deleting, or swapping one letter at a time.
The list of valid one-letter-edit neighbors
Generates random reward means for each option and samples rewards, thus showing a multi-armed bandit problem.
The generated restaurant means and standard deviation