-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (25 loc) · 827 Bytes
/
main.py
File metadata and controls
31 lines (25 loc) · 827 Bytes
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
from game import GameSimulator
if __name__ == '__main__':
print('Сценарий: A = 0.5, B = 0.5')
game = GameSimulator(.5, .5)
game.get_statistic()
print(game.statistic)
print('Сценарий: A = 0.5, B = 0.25')
game = GameSimulator(.5, .25)
game.get_statistic()
print(game.statistic)
print('Сценарий: A = reinforcement, B = 0.25')
game = GameSimulator(.5, .25)
game.learn('1')
game.get_statistic()
print(game.statistic)
print('Сценарий: A = punishment, B = 0.25')
game = GameSimulator(.5, .25)
game.learn('2')
game.get_statistic()
print(game.statistic)
print('Сценарий: A = reinforcement, B = reinforcement')
game = GameSimulator(.5, .25)
game.learn('3')
game.get_statistic()
print(game.statistic)