Created
November 17, 2018 03:58
-
-
Save manvillej/e29a0e308008bfb388e2c6d2ee8b3fb3 to your computer and use it in GitHub Desktop.
mapping a starting position for the old matrix to a new position for the new matrix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getMappedStartingPosition(startingPosition): | |
""" | |
maps original starting positions to starting positions on the condensed matrix | |
""" | |
mappingDictionary = { | |
0:3, | |
1:0, | |
2:1, | |
3:0, | |
4:2, | |
6:2, | |
7:0, | |
8:1, | |
9:0, | |
} | |
return mappingDictionary[startingPosition] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment