def create_deck(players):
    '''Creates the playing deck.

    The deck is global because all parts of the program should be able to access it.
    (Actually, just one fuction needs it, but its being visible everywhere else is fine.
    This was the line of code that was being avoided: setup_players(create_deck(players)).
    setup_game is most clear this way as to what gets done first.)
    The deck is composed of cards 0 - 9, one for each player in the game.'''
    global deck
    deck = []
    for number in range(10):
        for card in range(players):
            deck.append(number)
Creates the playing deck.

    The deck is global because all parts of the program should be able to access it.
    (Actually, just one fuction needs it, but its being visible everywhere else is fine.
    This was the line of code that was being avoided: setup_players(create_deck(players)).
    setup_game is most clear this way as to what gets done first.)
    The deck is composed of cards 0 - 9, one for each player in the game.
recipes/Python/440621_War_Game_Version_1/recipe-440621.py