Last active
May 25, 2022 17:54
-
-
Save WhatIThinkAbout/1ebc3dd0b0eae59211b9c21337dfe71d to your computer and use it in GitHub Desktop.
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
| from enum import IntEnum | |
| ''' simple helper class to enumerate actions in the grid levels ''' | |
| class Actions(IntEnum): | |
| Stay = 0 | |
| North = 1 | |
| East = 2 | |
| South = 3 | |
| West = 4 | |
| # get the enum name without the class | |
| def __str__(self): return self.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment