Source

SnakeGame / docs / random_simple.py

Full commit
1
2
3
4
from random import choice

def random_bot(board, position):
    return choice('UDLR')