Python 2 version

This commit is contained in:
Thomas FORGIONE 2019-03-22 14:46:58 +01:00
parent 3de46a4a1d
commit 63d63e05dd
3 changed files with 3 additions and 5 deletions

View File

@ -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

0
tron/__init__.py Normal file
View File

View File

@ -15,7 +15,7 @@ class Direction(Enum):
LEFT = 4
class Player:
class Player(object):
"""
This is the base class for decisions.