1 from troncode_values
import *
3 class TurnRightPlayer( object ):
9 return ( 160, 160, 255 )
12 return "Turn Right Player"
13 GetName
= staticmethod( GetName
)
15 def GetDir( self
, position
, direction
, gameboard
):
16 """Turn right if there is a pixel directly in front."""
18 if gameboard
.GetRelativePixel( position
, direction
, 1, 0 ) > 0:
19 return gameboard
.TurnRight( direction
)