In competitive online games, the piece colours are allotted to players from the organizers; in casual video games, the colours are often made the decision randomly, for example by a coin toss, or by 1 participant concealing a white pawn in a single hand as well as a black pawn https://elliottjpvae.tribunablog.com/the-ultimate-guide-to-chess-41201616