# -*- coding: utf-8 -*-
import time

from ..core import config
from ..core import logging
from . import base

class Robot(base.BaseRobot):

    def forward(self, *args):
        print("forward", args)

    def backward(self, *args):
        print("backward", args)

    def left(self, *args):
        print("left", args)

    def right(self, *args):
        print("right", args)

    def stop(self, *args):
        print("stop", args)

    def turn(direction, extent):
        extent = float(extent)
        print("turn", direction, extent)

# -*- coding: utf-8 -*-
import time

from ..core import config
from ..core import logging
from . import base

class Robot(base.BaseRobot):

    def forward(self, *args):
        print("forward", args)

    def backward(self, *args):
        print("backward", args)

    def left(self, *args):
        print("left", args)

    def right(self, *args):
        print("right", args)

    def stop(self, *args):
        print("stop", args)

    def turn(self, direction, extent=1.0, speed=1.0):
        extent = float(extent)
        speed = float(speed)
        print("turn", direction, extent, speed)

Correct turn in text robot