Skip to content

Instantly share code, notes, and snippets.

@manvillej
Created November 17, 2018 03:58
Show Gist options
  • Save manvillej/e29a0e308008bfb388e2c6d2ee8b3fb3 to your computer and use it in GitHub Desktop.
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
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