Skip to content

Instantly share code, notes, and snippets.

@jknthn
Last active February 26, 2018 06:06
Show Gist options
  • Save jknthn/5e6cfb55d169f2a1fc17f73de68877a1 to your computer and use it in GitHub Desktop.
Save jknthn/5e6cfb55d169f2a1fc17f73de68877a1 to your computer and use it in GitHub Desktop.
// Random Policy
{0: {'E': 0.0, 'N': 0.0, 'S': 0.0, 'W': 0.0},
1: {'E': 0.25, 'N': 0.25, 'S': 0.25, 'W': 0.25},
2: {'E': 0.25, 'N': 0.25, 'S': 0.25, 'W': 0.25},
...
13: {'E': 0.25, 'N': 0.25, 'S': 0.25, 'W': 0.25},
14: {'E': 0.25, 'N': 0.25, 'S': 0.25, 'W': 0.25},
15: {'E': 0.0, 'N': 0.0, 'S': 0.0, 'W': 0.0}}
// State to State prime
{0: {'E': 0, 'N': 0, 'S': 0, 'W': 0},
1: {'E': 2, 'N': 1, 'S': 5, 'W': 0},
2: {'E': 3, 'N': 2, 'S': 6, 'W': 1},
...
13: {'E': 14, 'N': 9, 'S': 13, 'W': 12},
14: {'E': 15, 'N': 10, 'S': 14, 'W': 13},
15: {'E': 0, 'N': 0, 'S': 0, 'W': 0}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment