Basically I need to find which of these two games have higher chance to win by "actually" throw the dice.
#include <cstdlib>
#include <iostream>
using namespace std;
int die_toss()
{
return 1 + rand() % 6;
}
int game1_wins(int a, int b, int c, int d) //This is where I got stuck
{
}
I was thinking write it like this if(((a=5,b=5) && (c=6,d=6)) || ((a=5,c=5)..and so on, there's like 6 possibilities. But I feel like I am going to the wrong direction.