Creating an ESP32 based dice for chess

My kid loves chess and lately he has been playing the dice chess variant with his friends. For those unfamiliar, it is when a die roll determines which piece type can be moved (e.g., 1=Pawn, 2=Rook, 3=Knight, etc.). However, this is inconvenient because players have to remember which chess piece corresponds to each number, and the mapping has to be explained to every new player. I’ve had an idea…