/* Returns the playerid whose turn it is. */ export function getCurrentPlayer(game) { return game.next == 1 ? game.player1 : game.player2; }