randomize the first player

This commit is contained in:
JerryXiao 2019-08-03 16:20:58 +08:00
parent 4c900f941a
commit 5dbdea4de1
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -22,6 +22,8 @@ import logging
from config import ADMIN_LIST, OPEN_LOBBY, DEFAULT_GAMEMODE, ENABLE_TRANSLATIONS
from datetime import datetime
from random import choice as rand_choice
from deck import Deck
import card as c
@ -69,6 +71,9 @@ class Game(object):
else:
self.deck._fill_wild_()
# randomize the first player
self.current_player = rand_choice(self.players)
self._first_card_()
self.started = True