Ad
  • Custom User Avatar

    if winner tries to play again, this part of code << if(playerLoc[player^1] == 100) return "Game over!"; >> giving error!!
    before winnig if winner rolled double and he can reach 100 he must not play 2nd rolled.