# -*- coding: utf-8 -*-

import time
from Reversi import Board
from random import randint
from implementedPlayer import *

class randomPlayer(ImplementedPlayer):

    def getPlayerName(self):
        return "Random Player"

    def nextMove(self):
        if self._board.is_game_over():
            return (-1,-1)
        moves = [m for m in self._board.legal_moves()]
        move = moves[randint(0,len(moves)-1)]
        self._board.push(move)
        (c,x,y) = move
        assert(c==self._mycolor)
        return (x,y)

    def endGame(self, winner):
        pass

cfd4caf104b3da0ac2cfc5239d8011cd663a7efb
<mask token>


class randomPlayer(ImplementedPlayer):
    <mask token>

    def nextMove(self):
        if self._board.is_game_over():
            return -1, -1
        moves = [m for m in self._board.legal_moves()]
        move = moves[randint(0, len(moves) - 1)]
        self._board.push(move)
        c, x, y = move
        assert c == self._mycolor
        return x, y
    <mask token>

<mask token>


class randomPlayer(ImplementedPlayer):
    <mask token>

    def nextMove(self):
        if self._board.is_game_over():
            return -1, -1
        moves = [m for m in self._board.legal_moves()]
        move = moves[randint(0, len(moves) - 1)]
        self._board.push(move)
        c, x, y = move
        assert c == self._mycolor
        return x, y

    def endGame(self, winner):
        pass

<mask token>


class randomPlayer(ImplementedPlayer):

    def getPlayerName(self):
        return 'Random Player'

    def nextMove(self):
        if self._board.is_game_over():
            return -1, -1
        moves = [m for m in self._board.legal_moves()]
        move = moves[randint(0, len(moves) - 1)]
        self._board.push(move)
        c, x, y = move
        assert c == self._mycolor
        return x, y

    def endGame(self, winner):
        pass

import time
from Reversi import Board
from random import randint
from implementedPlayer import *


class randomPlayer(ImplementedPlayer):

    def getPlayerName(self):
        return 'Random Player'

    def nextMove(self):
        if self._board.is_game_over():
            return -1, -1
        moves = [m for m in self._board.legal_moves()]
        move = moves[randint(0, len(moves) - 1)]
        self._board.push(move)
        c, x, y = move
        assert c == self._mycolor
        return x, y

    def endGame(self, winner):
        pass

# -*- coding: utf-8 -*-

import time
from Reversi import Board
from random import randint
from implementedPlayer import *

class randomPlayer(ImplementedPlayer):

    def getPlayerName(self):
        return "Random Player"

    def nextMove(self):
        if self._board.is_game_over():
            return (-1,-1)
        moves = [m for m in self._board.legal_moves()]
        move = moves[randint(0,len(moves)-1)]
        self._board.push(move)
        (c,x,y) = move
        assert(c==self._mycolor)
        return (x,y)

    def endGame(self, winner):
        pass
