Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions bindsnet/environment/dot_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,10 @@

# Mappings for changing direction if reflected.
# Cannot cross a row boundary moving right or left.
ROW_CROSSING = {
1: 2,
3: -2,
5: 1,
6: -1,
7: 1,
8: -1,
}
ROW_CROSSING = {1: 2, 3: -2, 5: 1, 6: -1, 7: 1, 8: -1}

# Cannot cross a column boundary moving up or down.
COL_CROSSING = {
2: 2,
4: -2,
5: 3,
6: 1,
7: -1,
8: -3,
}
COL_CROSSING = {2: 2, 4: -2, 5: 3, 6: 1, 7: -1, 8: -3}


class Dot:
Expand Down
Loading