Last active
July 26, 2018 19:42
-
-
Save kigiri/7ab523c5add824ff9141fed787424731 to your computer and use it in GitHub Desktop.
initial raiders of nan ai
This file contains 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
// code here... | |
const update = state => { | |
const { cell } = state | |
const cells = [ | |
cell + 1, | |
cell - 1, | |
cell + 14, | |
cell - 14, | |
].filter(_ => _) | |
return move(cells[Math.floor(Math.random() * 4)]) | |
} |
This file contains 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
{ | |
"name": "random", | |
"aiUrl": "https://gist.githubusercontent.com/kigiri/7ab523c5add824ff9141fed787424731/raw/dc2067277a82e18c29af44da353a07a714487913/ai.js", | |
"distribution": { | |
"tenacity": 0.5, | |
"power": 0.5, | |
"luck": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment