<commit_before>/**
	*	Two Dimensional Board for Tic-Tac-Toe
	*
	*	This board will function as the states for a single board instance of Tic-
	*	Tac-Toe.
	*/


#include <iostream>

using namespace std ;

class Board2D
{
	private:
		int		size ;		//	size of the board
		int		player ;	//	player number, 1 or 2, 0 for none
		int	*	board ;		//	the board itself

	public:
		Board2D		() 									;
		Board2D		( int )							;
		Board2D		( int , int [] [] )	;
		~Board2D	()									;

		bool		isEqual			( Board2D )					;
		bool		isTerminal	()									;
		int			getPlayer		() 									;
		int			getSize			()									;
		float		utility			()									;
		vector	action			()									;
		Board2D	copy				()									;
		Board2D	result			( int , int , int )	;
		void		setPlayer		( int )							;
		void		setAt				( int , int , int )	;
		void		setSize			( int )							;
} ;


/**
	*	Board2D
	*
	*	Creates a new 3x3 Tic-Tac-Toe board for play.
	*
	*	NEED TO VERIFY THAT A CONSTRUCTOR CAN CALL A CONSTRUCTOR
	*/
Board2D::Board2D ()
{
	Board2D ( 3 ) ;
}

/**
	*	Board2D
	*
	*	Creates a new nxn Tic-Tac-Toe board for play. Initializes the board for
	*	player 1.
	*
	*	NEED TO VERIFY HOW TO DO A MULTI DIMENSIONAL ARRAY. I KNOW IT WILL INVOLVE
	*	POINTERS.
	*/
Board2D::Board2D ( int n )
{
	setSize 	( n ) ;
	setPlayer ( 1 ) ;
	int [ n ] [ n ] b = 0 ;
	board = b ;
}<commit_msg>Adding getters and setters for Board2D.cpp.<commit_after>/**
	*	Two Dimensional Board for Tic-Tac-Toe
	*
	*	This board will function as the states for a single board instance of Tic-
	*	Tac-Toe.
	*/


#include <iostream>

using namespace std ;

class Board2D
{
	private:
		int		size ;		//	size of the board
		int		player ;	//	player number, 1 or 2, 0 for none
		int	*	board ;		//	the board itself

	public:
		Board2D		() 									;
		Board2D		( int )							;
		Board2D		( int , int [] [] )	;
		~Board2D	()									;

		bool		isEqual			( Board2D )					;
		bool		isTerminal	()									;
		int			getPlayer		() 									;
		int			getSize			()									;
		float		utility			()									;
		vector	action			()									;
		Board2D	copy				()									;
		Board2D	result			( int , int , int )	;
		void		setAt				( int , int , int )	;
		void		setPlayer		( int )							;
		void		setSize			( int )							;
} ;


/**
	*	Board2D
	*
	*	Creates a new 3x3 Tic-Tac-Toe board for play.
	*
	*	NEED TO VERIFY THAT A CONSTRUCTOR CAN CALL A CONSTRUCTOR
	*/
Board2D::Board2D ()
{
	Board2D ( 3 ) ;
}

/**
	*	Board2D
	*
	*	Creates a new nxn Tic-Tac-Toe board for play. Initializes the board for
	*	player 1.
	*
	*	NEED TO VERIFY HOW TO DO A MULTI DIMENSIONAL ARRAY. I KNOW IT WILL INVOLVE
	*	POINTERS.
	*/
Board2D::Board2D ( int n )
{
	setSize 	( n ) ;
	setPlayer ( 1 ) ;
	int [ n ] [ n ] b = 0 ;
	board = b ;
}

Board2D::Board2D ( int n , int [] [] )
{

}


/**
	*	getPlayer
	*
	*	Get the current player.
	*
	*	@return	player	1 or 2
	*/
int Board2D::setPlayer ( int p )
{
	return player ;
}

/**
	*	getSize
	*
	*	Get the size of the board.
	*
	*	@return	board size (n x n)
	*/
int Board2D::getSize ()
{
	return size ;
}

/**
	*	setPlayer
	*
	*	Set the player to the given value p.
	*
	*	@param	p		player	1 or 2
	*/
void Board2D::setPlayer ( int p )
{
	player = p ;
}

/**
	*	setSize
	*
	*	Set the size of the board to the given value n.
	*
	*	@param	n		board size (n x n)
	*/
void Board2D::setSize ( int n )
{
	size = n ;
}
{'fraction_non_alphanumeric': 0.11973723499552105, 'fraction_numerical': 0.01761719916392953, 'mean_word_length': 1.9079861111111112, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '592064', 'n_tokens_mistral': 1714, 'n_tokens_neox': 1468, 'n_words': 400}