<gh_stars>10-100
import random

from ..player import AbstractPlayer
from ..ship import Ship


class Player(AbstractPlayer):
    """
    Move the available ships randomly
    """

    name = "Walkers"

    def run_turn(self, galaxy, context):

        my_ships = galaxy.get_player_ships(self.name)

        for ship in my_ships:
            nearby_planets = galaxy.nearby_planets(ship.position, ship.speed)
            destination = random.choice(nearby_planets)
            ship.target = destination.position

        return galaxy
