Skip to content

Commit

Permalink
Removed junk
Browse files Browse the repository at this point in the history
  • Loading branch information
david-istvan committed Apr 6, 2024
1 parent 4809dd5 commit 999b8a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 68 deletions.
35 changes: 1 addition & 34 deletions src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,37 +105,4 @@ def __init__(self, map_size: int, u: float, hints):
self.hints = hints

def __str__(self):
return f'Human input with {len(self.hints)} hints at uncertainty level {self.u}.'

'''
cell00 = Cell(0, 0, 4)
cell01 = Cell(0, 1, 4)
#print(cell00)
#print(cell01)
'''
'''
grid = Grid(4)
for cell in grid.cells:
print(cell)
print(grid.get_cell_by_coordinates(0, 2)) # should print 0,2
print(grid.get_cell_by_coordinates(3, 3)) # should print 3,3
print(grid.get_cell_by_coordinates(3, 3).get_sequence_number_in_grid()) # should print 15
print(grid.get_cell_by_coordinates(3, 3).get_cell_in_direction(Direction.UP)) # should print 2,3
print(grid.get_cell_by_coordinates(3, 3).get_cell_in_direction(Direction.DOWN)) # should print None
print(grid.get_cell_by_coordinates(3, 3).get_cell_in_direction(Direction.LEFT)) # should print 3,2
print(grid.get_cell_by_coordinates(3, 3).get_cell_in_direction(Direction.RIGHT)) # should print None
print(grid.get_cell_by_coordinates(3, 3).get_neighbors()) # should print (3,2), None, None, (2,3)
print(grid.cells[15].get_action_to_me_from_neighbor(Direction.RIGHT))
print(grid.cells[15].get_action_to_me_from_neighbor(Direction.RIGHT).value)
print(f'me: {grid.cells[5]}')
print(grid.cells[5].get_actions_to_me_from_all_neighbors())
print(f'me: {grid.cells[0]}')
print(grid.cells[0].get_actions_to_me_from_all_neighbors())
'''
return f'Human input with {len(self.hints)} hints at uncertainty level {self.u}.'
35 changes: 1 addition & 34 deletions src/sl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,4 @@ def beliefConstraintFusion(opinion1, opinion2):
a = (a1 * (1 - u1) + a2 * (1 - u2)) / (2 - u1 - u2)


return [b, d, u, a]

'''
cell00 = Cell(0, 0, 4)
cell01 = Cell(0, 1, 4)
#print(cell00)
#print(cell01)
'''
'''
grid = Grid(4)
for cell in grid.cells:
print(cell)
print(grid.get_cell_by_coordinates(0, 2)) # should print 0,2
print(grid.get_cell_by_coordinates(3, 3)) # should print 3,3
print(grid.get_cell_by_coordinates(3, 3).get_sequence_number_in_grid()) # should print 15
print(grid.get_cell_by_coordinates(3, 3).get_cell_in_direction(Direction.UP)) # should print 2,3
print(grid.get_cell_by_coordinates(3, 3).get_cell_in_direction(Direction.DOWN)) # should print None
print(grid.get_cell_by_coordinates(3, 3).get_cell_in_direction(Direction.LEFT)) # should print 3,2
print(grid.get_cell_by_coordinates(3, 3).get_cell_in_direction(Direction.RIGHT)) # should print None
print(grid.get_cell_by_coordinates(3, 3).get_neighbors()) # should print (3,2), None, None, (2,3)
print(grid.cells[15].get_action_to_me_from_neighbor(Direction.RIGHT))
print(grid.cells[15].get_action_to_me_from_neighbor(Direction.RIGHT).value)
print(f'me: {grid.cells[5]}')
print(grid.cells[5].get_actions_to_me_from_all_neighbors())
print(f'me: {grid.cells[0]}')
print(grid.cells[0].get_actions_to_me_from_all_neighbors())
'''
return [b, d, u, a]

0 comments on commit 999b8a1

Please sign in to comment.