Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(0, 7):
- for j in range(0, 30):
- row = random.uniform(80, 100)
- space = random.uniform(5, 30)
- min_max = random.uniform(70, 110)
- alfa_beta = min_max - random.uniform(8, 14) if random.randint(1, 8) == 3 else min_max - random.uniform(4, 6)
- if j == 1:
- min_max -= 30
- alfa_beta -= 30
- if j > 4 and j < 10:
- row = random.uniform(95, 100)
- space = random.uniform(20, 30)
- both = row + space + random.uniform(0.5, 10.0)
- min_max = random.uniform()
- output_data = {
- 'step': j,
- 'data':{
- 'heurystyki':{
- 'row': row,
- 'space': space,
- 'both': both
- },
- 'algorithm': {
- 'min-max': min_max,
- 'alfa-beta': alfa_beta
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement