// File: Doug0855[P]TigerZone/main.cpp
// Function: printBoard(Board)
void printBoard(Board gameBoard) //debugging
{
	std::cout<<"in print board"<<std::endl;
	// Print out gameboard
	std::cout << "size of gameBoard is: " << gameBoard.m_board.size() << " x " << gameBoard.m_board[0].size() << std::endl;
	for(int i = 0; i < gameBoard.m_board.size(); i++)
	{
		std::cout << std::setw(3) << i << ' ';
		for(int j = 0; j < gameBoard.m_board[i].size(); j++)
		{
				if (gameBoard.m_board[i][j] != NULL)
					std::cout << GREEN <<  gameBoard.m_board[i][j]->getRotations() << gameBoard.m_board[i][j]->getType() << WHITE << RESET;
				else
					std::cout << std::setw(2) << '.';
		}
		std::cout<<std::endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x28(%rbp)
movq %rdi, -0x8(%rbp)
movq 0x33451(%rip), %rdi     # 0x36fb8
leaq 0x254ae(%rip), %rsi     # 0x2901c
callq 0x32b0
movq %rax, %rdi
movq 0x3342b(%rip), %rsi     # 0x36fa8
callq 0x32e0
movq 0x3342f(%rip), %rdi     # 0x36fb8
leaq 0x2549b(%rip), %rsi     # 0x2902b
callq 0x32b0
movq -0x28(%rbp), %rdi
movq %rax, -0x30(%rbp)
callq 0x81a0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x30b0
movq %rax, %rdi
leaq 0x2548a(%rip), %rsi     # 0x29042
callq 0x32b0
movq -0x28(%rbp), %rdi
movq %rax, -0x20(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0x81d0
movq %rax, %rdi
callq 0x81f0
movq -0x20(%rbp), %rdi
movq %rax, %rsi
callq 0x30b0
movq %rax, %rdi
movq 0x333bc(%rip), %rsi     # 0x36fa8
callq 0x32e0
movl $0x0, -0xc(%rbp)
movq -0x28(%rbp), %rdi
movslq -0xc(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x81a0
movq %rax, %rcx
movq -0x38(%rbp), %rax
cmpq %rcx, %rax
jae 0x3d92
movl $0x3, %edi
callq 0x8210
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %esi
movq 0x33388(%rip), %rdi     # 0x36fb8
callq 0x3320
movq %rax, %rdi
movl -0xc(%rbp), %esi
callq 0x34c0
movq %rax, %rdi
movl $0x20, %esi
callq 0x3340
movl $0x0, -0x14(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x14(%rbp), %rax
movq %rax, -0x40(%rbp)
movslq -0xc(%rbp), %rsi
callq 0x81d0
movq %rax, %rdi
callq 0x81f0
movq %rax, %rcx
movq -0x40(%rbp), %rax
cmpq %rcx, %rax
jae 0x3d71
movq -0x28(%rbp), %rdi
movslq -0xc(%rbp), %rsi
callq 0x81d0
movq %rax, %rdi
movslq -0x14(%rbp), %rsi
callq 0x8230
cmpq $0x0, (%rax)
je 0x3d38
movq 0x3330d(%rip), %rdi     # 0x36fb8
leaq 0x25394(%rip), %rsi     # 0x29046
callq 0x32b0
movq -0x28(%rbp), %rdi
movq %rax, -0x50(%rbp)
movslq -0xc(%rbp), %rsi
callq 0x81d0
movq %rax, %rdi
movslq -0x14(%rbp), %rsi
callq 0x8230
movq (%rax), %rdi
callq 0x8130
movq -0x50(%rbp), %rdi
movl %eax, %esi
callq 0x34c0
movq -0x28(%rbp), %rdi
movq %rax, -0x48(%rbp)
movslq -0xc(%rbp), %rsi
callq 0x81d0
movq %rax, %rdi
movslq -0x14(%rbp), %rsi
callq 0x8230
movq (%rax), %rdi
callq 0x8140
movq -0x48(%rbp), %rdi
movsbl %al, %esi
callq 0x3340
movq %rax, %rdi
leaq 0x2532a(%rip), %rsi     # 0x2904c
callq 0x32b0
movq %rax, %rdi
leaq 0x25321(%rip), %rsi     # 0x29052
callq 0x32b0
jmp 0x3d61
movl $0x2, %edi
callq 0x8210
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %esi
movq 0x33269(%rip), %rdi     # 0x36fb8
callq 0x3320
movq %rax, %rdi
movl $0x2e, %esi
callq 0x3340
jmp 0x3d63
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3c54
movq 0x33240(%rip), %rdi     # 0x36fb8
movq 0x33229(%rip), %rsi     # 0x36fa8
callq 0x32e0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x3bf8
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)