repo.or.cz
/
troncode.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit: you can play single player against an "always-turn-right" opponent.
[troncode.git]
/
player_null.py
blob
c74334f6f3e30258ce6a7ac95023e8387d668fe1
1
from
troncode_values
import
*
2
3
class
NullPlayer
(
object
):
4
5
def
__init__
(
self
):
6
pass
7
8
def
GetColour
(
self
):
9
return
(
255
,
255
,
255
)
10
11
def
GetName
():
12
return
"Null Player"
13
GetName
=
staticmethod
(
GetName
)
14
15
def
GetDir
(
self
,
position
,
direction
,
gameboard
):
16
return
direction