// File: /workspace/github_cpp_makefile_star2_O3/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 $0x238, %rsp            # imm = 0x238
leaq -0x258(%rbp), %rdi
callq 0x30dc
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0xe8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x89b7(%rip), %rsi      # 0xb038
leaq 0x89c2(%rip), %rdx      # 0xb04a
leaq -0xf8(%rbp), %rdi
callq 0x351a
leaq -0xf8(%rbp), %rdi
callq 0x2b45
movq -0xf8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x26bb
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2200
movq 0xc90e(%rip), %rdi      # 0xefd0
leaq 0x8982(%rip), %rsi      # 0xb04b
movl $0x11, %edx
callq 0x2230
movq 0xc906(%rip), %rdi      # 0xefe0
leaq -0x3c(%rbp), %rsi
callq 0x2150
movslq -0x3c(%rbp), %rax
movq %rax, -0x38(%rbp)
movq 0xc8de(%rip), %rdi      # 0xefd0
leaq 0x8964(%rip), %rsi      # 0xb05d
movl $0x7, %edx
callq 0x2230
leaq -0xc8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x8923(%rip), %rsi      # 0xb038
leaq 0x892e(%rip), %rdx      # 0xb04a
leaq -0xd8(%rbp), %rdi
callq 0x351a
leaq -0xd8(%rbp), %rdi
callq 0x2b45
movq -0xd8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x274f
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2200
movq -0x38(%rbp), %rcx
movq %rcx, %rbx
shlq $0x5, %rbx
leaq 0x8(%rbx), %rax
testl %ecx, %ecx
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x2030
movq %rax, %r15
movq -0x38(%rbp), %rax
movq %rax, (%r15)
testl %eax, %eax
movq %r15, -0x48(%rbp)
je 0x2847
leaq 0x8(%r15), %r14
leaq 0x18(%r15), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %rbx
jne 0x278e
cmpl $0x0, -0x38(%rbp)
setg %al
movl %eax, -0x2c(%rbp)
jle 0x2847
xorl %ebx, %ebx
movq 0xc810(%rip), %r15      # 0xefd0
leaq 0x889e(%rip), %r12      # 0xb065
leaq -0x118(%rbp), %r13
movl $0x6, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2230
incq %rbx
movq %r15, %rdi
movl %ebx, %esi
callq 0x2300
movb $0x2c, -0x118(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2230
movq %r13, %rdi
callq 0x2d13
movq %r14, %rdi
movq %r13, %rsi
callq 0x2240
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x2837
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x2200
addq $0x20, %r14
cmpq %rbx, -0x38(%rbp)
jne 0x27ce
movq -0x48(%rbp), %r15
jmp 0x284e
movl $0x0, -0x2c(%rbp)
movq 0xc77b(%rip), %rdi      # 0xefd0
leaq 0x8801(%rip), %rsi      # 0xb05d
movl $0x7, %edx
callq 0x2230
leaq -0xa8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x87c0(%rip), %rsi      # 0xb038
leaq 0x87cb(%rip), %rdx      # 0xb04a
leaq -0xb8(%rbp), %rdi
callq 0x351a
leaq -0xb8(%rbp), %rdi
callq 0x2b45
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x28b2
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0x88(%rbp), %rbx
movl -0x38(%rbp), %eax
movq %rax, -0x78(%rbp)
leaq 0x10(%r15), %rax
movq %rax, -0x70(%rbp)
leaq -0x98(%rbp), %r14
leaq -0x258(%rbp), %r15
cmpb $0x0, -0x2c(%rbp)
je 0x292d
movq -0x78(%rbp), %r12
movq -0x70(%rbp), %r13
movq %rbx, -0x98(%rbp)
movq -0x8(%r13), %rsi
movq (%r13), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x347c
movq %r15, %rdi
movq %r14, %rsi
callq 0x606c
movq -0x98(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2924
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2200
addq $0x20, %r13
decq %r12
jne 0x28e4
cmpl $0x1, -0x38(%rbp)
je 0x295b
movl $0xa, %edx
movq 0xc691(%rip), %rdi      # 0xefd0
leaq 0x8726(%rip), %rsi      # 0xb06c
callq 0x2230
movq 0xc68e(%rip), %rdi      # 0xefe0
leaq -0x68(%rbp), %rsi
callq 0x2250
leaq -0x68(%rbp), %rdi
leaq 0x8711(%rip), %rsi      # 0xb077
callq 0x20c0
testl %eax, %eax
je 0x28d6
movq -0x48(%rbp), %r12
movq (%r12), %rax
movq %rax, %r14
shlq $0x5, %r14
leaq 0x8(%r14), %rbx
testq %rax, %rax
je 0x29b1
movq %r12, %r15
addq $-0x8, %r15
leaq (%r15,%r14), %rax
movq -0x10(%r15,%r14), %rdi
cmpq %rdi, %rax
je 0x29ab
movq (%rax), %rsi
incq %rsi
callq 0x2200
addq $-0x20, %r14
jne 0x2992
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2360
movq 0xc60d(%rip), %rdi      # 0xefd0
leaq 0x86b1(%rip), %rsi      # 0xb07b
movl $0x9, %edx
callq 0x2230
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x29ed
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0x138(%rbp), %rbx
movq %rbx, %rdi
callq 0x33d8
movq -0x28(%rbx), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x2a1b
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0x1a8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a3a
movq -0x1a8(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0x1d8(%rbp), %rbx
movq %rbx, %rdi
callq 0x33d8
movq -0x28(%rbx), %rdi
leaq -0x1f0(%rbp), %rax
cmpq %rax, %rdi
je 0x2a68
movq -0x1f0(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0x248(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a87
movq -0x248(%rbp), %rsi
incq %rsi
callq 0x2200
xorl %eax, %eax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2b18
movq -0xa8(%rbp), %rsi
jmp 0x2b0b
jmp 0x2b15
movq %rax, %r14
movq -0xd8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2b18
movq -0xc8(%rbp), %rsi
jmp 0x2b0b
jmp 0x2b15
jmp 0x2b15
movq %rax, %r14
movq -0xf8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2b18
movq -0xe8(%rbp), %rsi
jmp 0x2b0b
jmp 0x2b15
jmp 0x2b15
jmp 0x2b15
jmp 0x2b15
jmp 0x2b15
jmp 0x2b15
movq %rax, %r14
movq -0x98(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2b18
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2200
jmp 0x2b18
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2b31
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2200
leaq -0x258(%rbp), %rdi
callq 0x32ec
movq %r14, %rdi
callq 0x2310