// File: /workspace/github_cpp_makefile_star2_O1/hobbitsyfeet[P]Turn/main.cc
// Function: main
int main(){

  //took out because worlds are now player-dependent so no need to go here
  // Chart worlds;
  Turn playerTurn;
  string option;
  int i;//initialize i for importance to keep value from for loop
  int temp;

  //start
  welcome("banners/banner.txt");
  cout<<"How many players?";
  cin>>temp;

  const int numPlayers = temp;

  //clear screen<< turn
  cout << "\x1B[2J\x1B[H";
  welcome("banners/banner.txt");

  //create array of number of players
  string *playerList = new string[numPlayers];

  //place players into array
  for( i = 0;  i< numPlayers; i++){
    cout<<"player"<<(i+1)<<',';
    playerList[i] = getPlayer();
  }

  //clear screen<< turn
  cout << "\x1B[2J\x1B[H";
  welcome("banners/banner.txt");

  //cout<<entering run
  do{
    for( i = 0;  i< numPlayers; i++)
      playerTurn.run(playerList[i]);
    if(numPlayers != 1){
      cout<<"continue?\n";
      cin>>option;
    }
  }
  while(option == "yes");

  delete [] playerList;
  cout<<"Good Bye!";
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
leaq -0x238(%rbp), %rdi
callq 0x30aa
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0xc8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x89a7(%rip), %rsi      # 0xb038
leaq 0x89b2(%rip), %rdx      # 0xb04a
leaq -0xd8(%rbp), %rdi
callq 0x34e4
leaq -0xd8(%rbp), %rdi
callq 0x2b13
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0x26cb
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2210
movq 0xc8fe(%rip), %rdi      # 0xefd0
leaq 0x8972(%rip), %rsi      # 0xb04b
movl $0x11, %edx
callq 0x2240
movq 0xc8f6(%rip), %rdi      # 0xefe0
leaq -0x34(%rbp), %rsi
callq 0x2150
movslq -0x34(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0xc8ce(%rip), %rdi      # 0xefd0
leaq 0x8954(%rip), %rsi      # 0xb05d
movl $0x7, %edx
callq 0x2240
leaq -0xa8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x8913(%rip), %rsi      # 0xb038
leaq 0x891e(%rip), %rdx      # 0xb04a
leaq -0xb8(%rbp), %rdi
callq 0x34e4
leaq -0xb8(%rbp), %rdi
callq 0x2b13
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x275f
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x30(%rbp), %rcx
movq %rcx, %r14
shlq $0x5, %r14
leaq 0x8(%r14), %rax
testl %ecx, %ecx
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x2030
movq %rax, %rbx
movq -0x30(%rbp), %rax
movq %rax, (%rbx)
testl %eax, %eax
je 0x27ab
leaq 0x18(%rbx), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %r14
jne 0x2792
cmpl $0x0, -0x30(%rbp)
jle 0x2843
leaq 0x8(%rbx), %r14
leaq -0xe8(%rbp), %r12
xorl %r15d, %r15d
leaq -0xf8(%rbp), %r13
movl $0x6, %edx
movq 0xc7fa(%rip), %rdi      # 0xefd0
leaq 0x8888(%rip), %rsi      # 0xb065
callq 0x2240
incq %r15
movq 0xc7e4(%rip), %rdi      # 0xefd0
movl %r15d, %esi
callq 0x2310
movb $0x2c, -0xf8(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2240
movq %r13, %rdi
callq 0x2ce1
movq %r14, %rdi
movq %r13, %rsi
callq 0x2250
movq -0xf8(%rbp), %rdi
cmpq %r12, %rdi
je 0x2839
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2210
addq $0x20, %r14
cmpq %r15, -0x30(%rbp)
jne 0x27ca
movq 0xc786(%rip), %rdi      # 0xefd0
leaq 0x880c(%rip), %rsi      # 0xb05d
movl $0x7, %edx
callq 0x2240
leaq -0x88(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x87cb(%rip), %rsi      # 0xb038
leaq 0x87d6(%rip), %rdx      # 0xb04a
leaq -0x98(%rbp), %rdi
callq 0x34e4
leaq -0x98(%rbp), %rdi
callq 0x2b13
movq -0x98(%rbp), %rdi
cmpq %r14, %rdi
je 0x28a7
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x68(%rbp), %r13
movl -0x30(%rbp), %r12d
shlq $0x5, %r12
leaq -0x78(%rbp), %r14
cmpl $0x0, -0x30(%rbp)
jle 0x2906
xorl %r15d, %r15d
movq %r13, -0x78(%rbp)
movq 0x8(%rbx,%r15), %rsi
movq 0x10(%rbx,%r15), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x344a
leaq -0x238(%rbp), %rdi
movq %r14, %rsi
callq 0x6054
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0x28fd
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2210
addq $0x20, %r15
cmpq %r15, %r12
jne 0x28c0
cmpl $0x1, -0x30(%rbp)
je 0x2934
movl $0xa, %edx
movq 0xc6b8(%rip), %rdi      # 0xefd0
leaq 0x874d(%rip), %rsi      # 0xb06c
callq 0x2240
movq 0xc6b5(%rip), %rdi      # 0xefe0
leaq -0x58(%rbp), %rsi
callq 0x2260
leaq -0x58(%rbp), %rdi
leaq 0x8738(%rip), %rsi      # 0xb077
callq 0x20c0
testl %eax, %eax
je 0x28b7
movq (%rbx), %rax
movq %rax, %r15
shlq $0x5, %r15
leaq 0x8(%r15), %r14
testq %rax, %rax
je 0x2985
movq %rbx, %r12
addq $-0x8, %r12
leaq (%r12,%r15), %rax
movq -0x10(%r12,%r15), %rdi
cmpq %rdi, %rax
je 0x297f
movq (%rax), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r15
jne 0x2966
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2370
movq 0xc639(%rip), %rdi      # 0xefd0
leaq 0x86dd(%rip), %rsi      # 0xb07b
movl $0x9, %edx
callq 0x2240
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x29c1
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x118(%rbp), %rbx
movq %rbx, %rdi
callq 0x33a6
movq -0x28(%rbx), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x29ef
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x188(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a0e
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x1b8(%rbp), %rbx
movq %rbx, %rdi
callq 0x33a6
movq -0x28(%rbx), %rdi
leaq -0x1d0(%rbp), %rax
cmpq %rax, %rdi
je 0x2a3c
movq -0x1d0(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x228(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a5b
movq -0x228(%rbp), %rsi
incq %rsi
callq 0x2210
xorl %eax, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x98(%rbp), %rdi
cmpq %r14, %rdi
je 0x2ae6
movq -0x88(%rbp), %rsi
jmp 0x2ade
jmp 0x2ac9
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x2ae6
movq -0xa8(%rbp), %rsi
jmp 0x2ade
jmp 0x2ac9
jmp 0x2ac9
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0x2ae6
movq -0xc8(%rbp), %rsi
jmp 0x2ade
jmp 0x2ac9
jmp 0x2ac9
jmp 0x2ac9
jmp 0x2ac9
jmp 0x2ac9
jmp 0x2ac9
movq %rax, %rbx
jmp 0x2ae6
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r13, %rdi
je 0x2ae6
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x2aff
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x238(%rbp), %rdi
callq 0x32ba
movq %rbx, %rdi
callq 0x2320