Skip to the content.

SnakeClassic

  1. Install and configure SDL2 CUDA(optional) SDL2_Net
  2. Configure variables in compile.sh. See SnakeAI for details.
  3. Compile

Options:

option Description
- play the game
0 probabilistic heurisitc algorithm (requires CUDA)
1 Greedy algorithm
2 Network Controller: Accepts commands over TCP

Compilation Options:

  1. To play ./compile.sh Self
  2. To select probabilistic heurisitc algorithm ./compile.sh 0 prob
  3. To select Greedy Algorithm ./compile.sh 1 greedy locally optimum