Can you please tell me what is wrong in this
@ateeq you have a errror in line no 63 you are using operator in wrong way
if at j position there is some other value then you can simply check
first initialy set earch value in the board to INT_MAX and then mark the edges in the borad and then add a extra check condition for j like
int j = i + dice;
if (board[j] != INT_MAX)
{
j = board[j];
}
rest of your code looks okay if your problem still exists let me know and if clear please mark it solved
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.