Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fabba090d9
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (8 sloc) 0.232 kB
#!/usr/bin/python
"""Moves in a random direction"""
import random, tron
def which_move(board):
return random.choice(board.moves())
# make a move each turn
for board in tron.Board.generate():
tron.move(which_move(board))
Jump to Line
Something went wrong with that request. Please try again.