Stratego/src/entities/Board.java
public boolean addPiece(Piece piece)
	{
		for (byte j = 0; j < SIZE; j++)
		{
			if (j == 4 || j == 5)
				continue;
			for (byte i = 0; i < SIZE; i++)
			{
				if (isEmptyPos(i, j))
				{
					map[convertX(i, j)][convertY(i, j)] = piece;
					return true;
				}
			}
		}
		return false;
	}
/**
	 * @param piece
	 * @return true if piece added
	 */
@param piece
@return true if piece added
@param piece @return true if piece added
public boolean addPiece(Piece piece)
	{
		for (byte j = 0; j < SIZE; j++)
		{
			if (j == 4 || j == 5)
				continue;
			for (byte i = 0; i < SIZE; i++)
			{
				if (isEmptyPos(i, j))
				{
					map[convertX(i, j)][convertY(i, j)] = piece;
					return true;
				}
			}
		}
		return false;
	}
public boolean addPiece ( Piece piece ) { for ( byte j = 0 ; j < SIZE ; j ++ ) { if ( j == 4 || j == 5 ) continue ; for ( byte i = 0 ; i < SIZE ; i ++ ) { if ( isEmptyPos ( i , j ) ) { map [ convertX ( i , j ) ] [ convertY ( i , j ) ] = piece ; return true ; } } } return false ; }
@param piece
 @return true if piece added
@param piece @return true if piece added