-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay.py
38 lines (26 loc) · 1.13 KB
/
play.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import random
from player import *
from team import *
from play_match import *
player_set1=Players()
player_set2=Players()
for i in range(11):
player_set1.get_player_info(country='country_a',
name=f"a_{i}",
bowling=random.uniform(0.2, 0.8),
batting=random.uniform(0.2, 0.8),
fielding=random.uniform(0.2, 0.8),
running=random.uniform(0.2, 0.8),
experience=random.uniform(0.2, 0.9))
player_set2.get_player_info(country='country_b',
name=f"b_{i}",
bowling=random.uniform(0.2, 0.8),
batting=random.uniform(0.2, 0.8),
fielding=random.uniform(0.2, 0.8),
running=random.uniform(0.2, 0.8),
experience=random.uniform(0.2, 0.9))
team1=Teams(player_set1.data)
team2=Teams(player_set2.data)
crick_match=Match(10,team1,team2)
crick_match.toss()
crick_match.start_match()