-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbreak_core.py
More file actions
executable file
·21 lines (19 loc) · 1.13 KB
/
break_core.py
File metadata and controls
executable file
·21 lines (19 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
from agent import *
from piece import *
from envy_free_allocation import *
pref_strings = [
'1 13: 1 1, 2 13: 1 1, 3 13: 1 1, 4 13: 1 1, 5 13: 1 1, 6 13: 1 1, 7 13: 2 1, 8 13: 2 1, 9 13: 2 1, 10 13: 3 1, 11 13: 3 1, 12 13: 6 1, 13 13: 6 1',
'1 13: 4 1, 2 13: 4 1, 3 13: 2 1, 4 13: 1 1, 5 13: 1 1, 6 13: 8 1, 7 13: 0 1, 8 13: 0 1, 9 13: 0 1, 10 13: 0 1, 11 13: 0 1, 12 13: 8 1, 13 13: 0 1',
'1 13: 1 1, 2 13: 1 1, 3 13: 1 1, 4 13: 1 1, 5 13: 1 1, 6 13: 1 1, 7 13: 1 1, 8 13: 1 1, 9 13: 3 1, 10 13: 0 1, 11 13: 0 1, 12 13: 4 1, 13 13: 0 1',
'1 13: 1 1, 2 13: 1 1, 3 13: 1 1, 4 13: 1 1, 5 13: 2 1, 6 13: 2 1, 7 13: 4 1, 8 13: 2 1, 9 13: 4 1, 10 13: 2 1, 11 13: 4 1, 12 13: 4 1, 13 13: 0 1',
'1 13: 1 1, 2 13: 1 1, 3 13: 1 1, 4 13: 1 1, 5 13: 1 1, 6 13: 1 1, 7 13: 0 1, 8 13: 0 1, 9 13: 0 1, 10 13: 0 1, 11 13: 0 1, 12 13: 3 1, 13 13: 0 1',
]
if __name__ == '__main__':
set_debug(True)
agents = []
for i, pref in enumerate(pref_strings):
a = Agent()
a.set_preferences(pref)
agents.append(a)
get_envy_free_allocation(agents, Piece.get_whole_piece())