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
| yarn add \ | |
| react \ | |
| react-dom \ | |
| styled-components \ | |
| styled-system \ | |
| react-spring \ | |
| axios \ | |
| @reach/router \ | |
| chroma-ja |
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
| { | |
| "trailingComma": "es5", | |
| "tabWidth": 2, | |
| "semi": false, | |
| "singleQuote": true, | |
| "useTabs": false, | |
| "bracketSpacing": true, | |
| "jsxBracketSameLine": true, | |
| "arrowParens": "avoid" | |
| } |
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
| import rg | |
| class Robot: | |
| def act(self, game): | |
| # if we're in the center, stay put | |
| for p in self.around(): | |
| if rg.dist(p, self.location) >= 2: | |
| return ['move', rg.toward(self.location, loc)] |
NewerOlder