SnakeAI
An AI agent for the SnakeClassic.
Define following variables in compile.sh
- SnakeAIPath: Path to the root.
- CUDA_PATH: Path to the root of CUDA installation
- search_depth: Creates kernel with width of (search_depth*2+1)
Example: search_depth=3
-3 | -3 | -3 | -3 | -3 | -3 | -3 |
---|---|---|---|---|---|---|
-3 | -2 | -2 | -2 | -2 | -2 | -3 |
-3 | -2 | -1 | -1 | -1 | -2 | -3 |
-3 | -2 | -1 | 0 | -1 | -2 | -3 |
-3 | -2 | -1 | -1 | -1 | -2 | -3 |
-3 | -2 | -2 | -2 | -2 | -2 | -3 |
-3 | -3 | -3 | -3 | -3 | -3 | -3 |
Methods
-
Greedy Locally Optimum - Score 249
-
Probabilistic Heuristic - Score 1001