# Easy Difficulty AI Class
# Plays against a human
# Chooses which column to drop randomly



import connectfour
import random

class EasyAI():
	def __init__(self, turn, game):
		""" Initializes what color the AI is playing as and stores the board information """
		self.turn = turn
		self.game = game
		self.gameBoard = game.returnBoard() 

	def setBoard(self, board):
		""" Swaps out the current gameboard with another """
		self.gameBoard = board

	def chooseMove(self):
		""" Returns a random column to drop disk in as long as it is valid (not full) """
		listOfColumns = [0,1,2,3,4,5,6]
		result = random.choice(listOfColumns)
		
		while (self.game.isValid(result+1) != True):
			result = random.choice(listOfColumns)
		return result

628c93f21a5a62701c9f163ea09ff84d09d93015
<mask token>


class EasyAI:
    <mask token>

    def setBoard(self, board):
        """ Swaps out the current gameboard with another """
        self.gameBoard = board
    <mask token>

<mask token>


class EasyAI:
    <mask token>

    def setBoard(self, board):
        """ Swaps out the current gameboard with another """
        self.gameBoard = board

    def chooseMove(self):
        """ Returns a random column to drop disk in as long as it is valid (not full) """
        listOfColumns = [0, 1, 2, 3, 4, 5, 6]
        result = random.choice(listOfColumns)
        while self.game.isValid(result + 1) != True:
            result = random.choice(listOfColumns)
        return result

<mask token>


class EasyAI:

    def __init__(self, turn, game):
        """ Initializes what color the AI is playing as and stores the board information """
        self.turn = turn
        self.game = game
        self.gameBoard = game.returnBoard()

    def setBoard(self, board):
        """ Swaps out the current gameboard with another """
        self.gameBoard = board

    def chooseMove(self):
        """ Returns a random column to drop disk in as long as it is valid (not full) """
        listOfColumns = [0, 1, 2, 3, 4, 5, 6]
        result = random.choice(listOfColumns)
        while self.game.isValid(result + 1) != True:
            result = random.choice(listOfColumns)
        return result

import connectfour
import random


class EasyAI:

    def __init__(self, turn, game):
        """ Initializes what color the AI is playing as and stores the board information """
        self.turn = turn
        self.game = game
        self.gameBoard = game.returnBoard()

    def setBoard(self, board):
        """ Swaps out the current gameboard with another """
        self.gameBoard = board

    def chooseMove(self):
        """ Returns a random column to drop disk in as long as it is valid (not full) """
        listOfColumns = [0, 1, 2, 3, 4, 5, 6]
        result = random.choice(listOfColumns)
        while self.game.isValid(result + 1) != True:
            result = random.choice(listOfColumns)
        return result

# Easy Difficulty AI Class
# Plays against a human
# Chooses which column to drop randomly



import connectfour
import random

class EasyAI():
	def __init__(self, turn, game):
		""" Initializes what color the AI is playing as and stores the board information """
		self.turn = turn
		self.game = game
		self.gameBoard = game.returnBoard() 

	def setBoard(self, board):
		""" Swaps out the current gameboard with another """
		self.gameBoard = board

	def chooseMove(self):
		""" Returns a random column to drop disk in as long as it is valid (not full) """
		listOfColumns = [0,1,2,3,4,5,6]
		result = random.choice(listOfColumns)
		
		while (self.game.isValid(result+1) != True):
			result = random.choice(listOfColumns)
		return result
