# A Python program for generating random chess moves without knowing the current board position, piece position, or game state - which would make them completely random and often invalid.
import random
def random_chess_move_generator():
pieces = ['K', 'Q', 'R', 'B', 'N', '']
columns = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']
rows = ['1', '2', '3', '4', '5', '6', '7', '8']
while True:
piece = random.choice(pieces)
column = random.choice(columns)
row = random.choice(rows)
yield f"{piece}{column}{row}"