log = logging.getLogger(__name__)\r
\r
def is_real_player(events):\r
+ """\r
+ Determines if a given set of player events correspond with a player who\r
+ \r
+ 1) is not a bot (P event does not look like a bot)\r
+ 2) played in the game (matches 1)\r
+ 3) was present at the end of the game (scoreboardvalid 1)\r
+\r
+ Returns True if the player meets the above conditions, and false otherwise.\r
+ """\r
flg_is_real = False\r
\r
if not events['P'].startswith('bot'):\r