Changeset 6


Ignore:
Timestamp:
08/17/2016 12:02:50 AM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
resistance
revision id:
dsowen@fugue88.ws-20160817000250-utq3w9vf4mdopgc7
Message:

Added a dummy AI player

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r5 r6  
    22
    33from player import Player
     4import ai
    45
    56
     
    4041    shuffle(role_deck)
    4142    print(role_deck)
    42     players = [Player(player_count, i, r) for i, r in enumerate(role_deck)]
     43    players = [Player(player_count, i, r) if r == "SPY"
     44               else ai.Player(player_count, i, r)
     45               for i, r in enumerate(role_deck)]
    4346
    4447    spy_nums = [i for i, r in enumerate(role_deck) if r == "SPY"]
Note: See TracChangeset for help on using the changeset viewer.