Python 2 version
This commit is contained in:
parent
3de46a4a1d
commit
63d63e05dd
6
play.py
6
play.py
|
@ -1,9 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
|
||||
# Import pygame without printing anything on the terminal
|
||||
import contextlib
|
||||
with contextlib.redirect_stdout(None):
|
||||
import pygame
|
||||
import pygame
|
||||
|
||||
from tron.map import Map
|
||||
from tron.game import Game, PositionPlayer
|
||||
|
|
|
@ -15,7 +15,7 @@ class Direction(Enum):
|
|||
LEFT = 4
|
||||
|
||||
|
||||
class Player:
|
||||
class Player(object):
|
||||
"""
|
||||
This is the base class for decisions.
|
||||
|
||||
|
|
Loading…
Reference in New Issue