randomize the first player
This commit is contained in:
parent
4c900f941a
commit
5dbdea4de1
1 changed files with 5 additions and 0 deletions
5
game.py
5
game.py
|
@ -22,6 +22,8 @@ import logging
|
||||||
from config import ADMIN_LIST, OPEN_LOBBY, DEFAULT_GAMEMODE, ENABLE_TRANSLATIONS
|
from config import ADMIN_LIST, OPEN_LOBBY, DEFAULT_GAMEMODE, ENABLE_TRANSLATIONS
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
from random import choice as rand_choice
|
||||||
|
|
||||||
from deck import Deck
|
from deck import Deck
|
||||||
import card as c
|
import card as c
|
||||||
|
|
||||||
|
@ -69,6 +71,9 @@ class Game(object):
|
||||||
else:
|
else:
|
||||||
self.deck._fill_wild_()
|
self.deck._fill_wild_()
|
||||||
|
|
||||||
|
# randomize the first player
|
||||||
|
self.current_player = rand_choice(self.players)
|
||||||
|
|
||||||
self._first_card_()
|
self._first_card_()
|
||||||
self.started = True
|
self.started = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue