DuelSnakesInterface
In addition to the methods and attributes described in the overview, this interface provides the method and attributes below.
Methods
| Method |
Returns |
Description |
DuelSnakesInterface.set_direction(direction: int) |
None |
Sets the direction your snake moves on the next tick. direction is one of N, E, S or W below. |
Attributes
| Name |
Type |
Value |
DuelSnakesInterface.N |
int |
0 |
DuelSnakesInterface.E |
int |
1 |
DuelSnakesInterface.S |
int |
2 |
DuelSnakesInterface.W |
int |
3 |
DuelSnakesInterface.WIDTH |
int |
26, the number of columns |
DuelSnakesInterface.HEIGHT |
int |
25, the number of rows |