I have a game that consists of
- Four countries each has four soldiers
board that has 24 places to step on.
Each turn a random dice lands a solider from each team on a place(number) on the board according to the output of the dice.
After the turn ends the games display the current position of each soldier from each team.
I wonder if there is another easier way to get the output as shown in the linked image. The current routine is 2680 lines long.
If a soldier is on a space on the board, it prints the soldier. Otherwise it prints the space number.
bool PlayBo::ShowBo()
{
cout << " France";
cout << endl;
if (g1 == french && g2 != french && g3 != french && g4 != french)
{
cout << " g1";
cout << endl;
}
if (g1 == french && g2 == french && g3 != french && g4 != french)
{
cout << " g2g1";
cout << endl;
}
if (g1 == french && g2 != french && g3 == french && g4 != french)
{
cout << " g3g1";
cout << endl;
}
if (g1 == french && g2 != french && g3 != french && g4 == french)
{
cout << " g4g1";
cout << endl;
}
if (g1 == french && g2 == french && g3 == french && g4 != french)
{
cout << " g3g2g1";
cout << endl;
}
if (g1 == french && g2 != french && g3 == french && g4 == french)
{
cout << " g4g3g1";
cout << endl;
}
if (g1 == french && g2 == french && g3 != french && g4 == french)
{
cout << " g4g2g1";
cout << endl;
}
if (g1 == french && g2 == french && g3 == french && g4 == french)
{
cout << " g4g3g2g1";
cout << endl;
}
if (g1 != french && g2 == french && g3 != french && g4 != french)
{
cout << " g2";
cout << endl;
}
if (g1 != french && g2 == french && g3 == french && g4 != french)
{
cout << " g3g2";
cout << endl;
}
if (g1 != french && g2 == french && g3 != french && g4 == french)
{
cout << " g4g2";
cout << endl;
}
if (g1 != french && g2 == french && g3 == french && g4 == french)
{
cout << " g4g3g2";
cout << endl;
}
if (g1 != french && g2 != french && g3 == french && g4 != french)
{
cout << " g3";
cout << endl;
}
if (g1 != french && g2 != french && g3 == french && g4 == french)
{
cout << " g4g3";
cout << endl;
}
if (g1 != french && g2 != french && g3 != french && g4 == french)
{
cout << " g4";
cout << endl;
}
if (g1 != french && g2 != french && g3 != french && g4 != french)
{
cout << " ";
cout << endl;
}
//space 200
if (b1->value == 200)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 200)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 200)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 200)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 200)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 200)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 200)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 200)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 200)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 200)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 200)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 200)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 200)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 200)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 200)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 200)
{
cout << " r4";
cout << endl;
}
else
{
cout << " GS";
cout << endl;
}
//space 6
if (b1->value == 6)
{
cout << " b1";
}
else if (b2->value == 6)
{
cout << " b2";
}
else if (b3->value == 6)
{
cout << " b3";
}
else if (b4->value == 6)
{
cout << " b4";
}
else if (g1->value == 6)
{
cout << " g1";
}
else if (g2->value == 6)
{
cout << " g2";
}
else if (g3->value == 6)
{
cout << " g3";
}
else if (g4->value == 6)
{
cout << " g4";
}
else if (y1->value == 6)
{
cout << " y1";
}
else if (y2->value == 6)
{
cout << " y2";
}
else if (y3->value == 6)
{
cout << " y3";
}
else if (y4->value == 6)
{
cout << " y4";
}
else if (r1->value == 6)
{
cout << " r1";
}
else if (r2->value == 6)
{
cout << " r2";
}
else if (r3->value == 6)
{
cout << " r3";
}
else if (r4->value == 6)
{
cout << " r4";
}
else
{
cout << " 06";
}
//space 7
if (b1->value == 7)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 7)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 7)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 7)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 7)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 7)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 7)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 7)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 7)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 7)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 7)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 7)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 7)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 7)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 7)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 7)
{
cout << " r4";
cout << endl;
}
else
{
cout << " 07";
cout << endl;
}
//space 5
if (b1->value == 5)
{
cout << " b1";
}
else if (b2->value == 5)
{
cout << " b2";
}
else if (b3->value == 5)
{
cout << " b3";
}
else if (b4->value == 5)
{
cout << " b4";
}
else if (g1->value == 5)
{
cout << " g1";
}
else if (g2->value == 5)
{
cout << " g2";
}
else if (g3->value == 5)
{
cout << " g3";
}
else if (g4->value == 5)
{
cout << " g4";
}
else if (y1->value == 5)
{
cout << " y1";
}
else if (y2->value == 5)
{
cout << " y2";
}
else if (y3->value == 5)
{
cout << " y3";
}
else if (y4->value == 5)
{
cout << " y4";
}
else if (r1->value == 5)
{
cout << " r1";
}
else if (r2->value == 5)
{
cout << " r2";
}
else if (r3->value == 5)
{
cout << " r3";
}
else if (r4->value == 5)
{
cout << " r4";
}
else
{
cout << " 05";
}
//space 201
if (g1->value == 211)
{
cout << " g1";
}
else if (g2->value == 211)
{
cout << " g2";
}
else if (g3->value == 211)
{
cout << " g3";
}
else if (g4->value == 211)
{
cout << " g4";
}
else
{
cout << " G1";
}
//space 22
if (b1->value == 8)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 8)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 8)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 8)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 8)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 8)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 8)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 8)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 8)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 8)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 8)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 8)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 8)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 8)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 8)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 8)
{
cout << " r4";
cout << endl;
}
else
{
cout << " 08";
cout << endl;
}
//space 4
if (b1->value == 4)
{
cout << " b1";
}
else if (b2->value == 4)
{
cout << " b2";
}
else if (b3->value == 4)
{
cout << " b3";
}
else if (b4->value == 4)
{
cout << " b4";
}
else if (g1->value == 4)
{
cout << " g1";
}
else if (g2->value == 4)
{
cout << " g2";
}
else if (g3->value == 4)
{
cout << " g3";
}
else if (g4->value == 4)
{
cout << " g4";
}
else if (y1->value == 4)
{
cout << " y1";
}
else if (y2->value == 4)
{
cout << " y2";
}
else if (y3->value == 4)
{
cout << " y3";
}
else if (y4->value == 4)
{
cout << " y4";
}
else if (r1->value == 4)
{
cout << " r1";
}
else if (r2->value == 4)
{
cout << " r2";
}
else if (r3->value == 4)
{
cout << " r3";
}
else if (r4->value == 4)
{
cout << " r4";
}
else
{
cout << " 04";
}
//space 202
if (g1->value == 212)
{
cout << " g1";
}
else if (g2->value == 212)
{
cout << " g2";
}
else if (g3->value == 212)
{
cout << " g3";
}
else if (g4->value == 212)
{
cout << " g4";
}
else
{
cout << " G2";
}
//space 9
if (b1->value == 9)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 9)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 9)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 9)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 9)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 9)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 9)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 9)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 9)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 9)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 9)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 9)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 9)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 9)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 9)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 9)
{
cout << " r4";
cout << endl;
}
else
{
cout << " 09";
cout << endl;
}
//space 3
if (b1->value == 3)
{
cout << " b1";
}
else if (b2->value == 3)
{
cout << " b2";
}
else if (b3->value == 3)
{
cout << " b3";
}
else if (b4->value == 3)
{
cout << " b4";
}
else if (g1->value == 3)
{
cout << " g1";
}
else if (g2->value == 3)
{
cout << " g2";
}
else if (g3->value == 3)
{
cout << " g3";
}
else if (g4->value == 3)
{
cout << " g4";
}
else if (y1->value == 3)
{
cout << " y1";
}
else if (y2->value == 3)
{
cout << " y2";
}
else if (y3->value == 3)
{
cout << " y3";
}
else if (y4->value == 3)
{
cout << " y4";
}
else if (r1->value == 3)
{
cout << " r1";
}
else if (r2->value == 3)
{
cout << " r2";
}
else if (r3->value == 3)
{
cout << " r3";
}
else if (r4->value == 3)
{
cout << " r4";
}
else
{
cout << " 03";
}
//space 203
if (g1->value == 213)
{
cout << " g1";
}
else if (g2->value == 213)
{
cout << " g2";
}
else if (g3->value == 213)
{
cout << " g3";
}
else if (g4->value == 213)
{
cout << " g4";
}
else
{
cout << " G3";
}
//space 10
if (b1->value == 10)
{
cout << " b1";
}
else if (b2->value == 10)
{
cout << " b2";
}
else if (b3->value == 10)
{
cout << " b3";
}
else if (b4->value == 10)
{
cout << " b4";
}
else if (g1->value == 10)
{
cout << " g1";
}
else if (g2->value == 10)
{
cout << " g2";
}
else if (g3->value == 10)
{
cout << " g3";
}
else if (g4->value == 10)
{
cout << " g4";
}
else if (y1->value == 10)
{
cout << " y1";
}
else if (y2->value == 10)
{
cout << " y2";
}
else if (y3->value == 10)
{
cout << " y3";
}
else if (y4->value == 10)
{
cout << " y4";
}
else if (r1->value == 10)
{
cout << " r1";
}
else if (r2->value == 10)
{
cout << " r2";
}
else if (r3->value == 10)
{
cout << " r3";
}
else if (r4->value == 10)
{
cout << " r4";
}
else
{
cout << " 10";
}
cout << " ";
if (y3 == british)
{
cout << "y3";
}
else
{
cout << " ";
}
cout << endl;
//space 2
if (b1->value == 2)
{
cout << " b1";
}
else if (b2->value == 2)
{
cout << " b2";
}
else if (b3->value == 2)
{
cout << " b3";
}
else if (b4->value == 2)
{
cout << " b4";
}
else if (g1->value == 2)
{
cout << " g1";
}
else if (g2->value == 2)
{
cout << " g2";
}
else if (g3->value == 2)
{
cout << " g3";
}
else if (g4->value == 2)
{
cout << " g4";
}
else if (y1->value == 2)
{
cout << " y1";
}
else if (y2->value == 2)
{
cout << " y2";
}
else if (y3->value == 2)
{
cout << " y3";
}
else if (y4->value == 2)
{
cout << " y4";
}
else if (r1->value == 2)
{
cout << " r1";
}
else if (r2->value == 2)
{
cout << " r2";
}
else if (r3->value == 2)
{
cout << " r3";
}
else if (r4->value == 2)
{
cout << " r4";
}
else
{
cout << " 02";
}
//space 204
if (g1->value == 214)
{
cout << " g1";
}
else if (g2->value == 214)
{
cout << " g2";
}
else if (g3->value == 214)
{
cout << " g3";
}
else if (g4->value == 214)
{
cout << " g4";
}
else
{
cout << " G4";
}
//space 11
if (b1->value == 11)
{
cout << " b1";
}
else if (b2->value == 11)
{
cout << " b2";
}
else if (b3->value == 11)
{
cout << " b3";
}
else if (b4->value == 11)
{
cout << " b4";
}
else if (g1->value == 11)
{
cout << " g1";
}
else if (g2->value == 11)
{
cout << " g2";
}
else if (g3->value == 11)
{
cout << " g3";
}
else if (g4->value == 11)
{
cout << " g4";
}
else if (y1->value == 11)
{
cout << " y1";
}
else if (y2->value == 11)
{
cout << " y2";
}
else if (y3->value == 11)
{
cout << " y3";
}
else if (y4->value == 11)
{
cout << " y4";
}
else if (r1->value == 11)
{
cout << " r1";
}
else if (r2->value == 11)
{
cout << " r2";
}
else if (r3->value == 11)
{
cout << " r3";
}
else if (r4->value == 11)
{
cout << " r4";
}
else
{
cout << " 11";
}
cout << " ";
if (y3 == british)
{
cout << "y3";
}
else
{
cout << " ";
}
cout << endl;
cout << "UK";
//space 1
if (b1->value == 1)
{
cout << " b1";
}
else if (b2->value == 1)
{
cout << " b2";
}
else if (b3->value == 1)
{
cout << " b3";
}
else if (b4->value == 1)
{
cout << " b4";
}
else if (g1->value == 1)
{
cout << " g1";
}
else if (g2->value == 1)
{
cout << " g2";
}
else if (g3->value == 1)
{
cout << " g3";
}
else if (g4->value == 1)
{
cout << " g4";
}
else if (y1->value == 1)
{
cout << " y1";
}
else if (y2->value == 1)
{
cout << " y2";
}
else if (y3->value == 1)
{
cout << " y3";
}
else if (y4->value == 1)
{
cout << " y4";
}
else if (r1->value == 1)
{
cout << " r1";
}
else if (r2->value == 1)
{
cout << " r2";
}
else if (r3->value == 1)
{
cout << " r3";
}
else if (r4->value == 1)
{
cout << " r4";
}
else
{
cout << " 01";
}
//space 12
cout << " ";
if (b1->value == 12)
{
cout << " b1";
}
else if (b2->value == 12)
{
cout << " b2";
}
else if (b3->value == 12)
{
cout << " b3";
}
else if (b4->value == 12)
{
cout << " b4";
}
else if (g1->value == 12)
{
cout << " g1";
}
else if (g2->value == 12)
{
cout << " g2";
}
else if (g3->value == 12)
{
cout << " g3";
}
else if (g4->value == 12)
{
cout << " g4";
}
else if (y1->value == 12)
{
cout << " y1";
}
else if (y2->value == 12)
{
cout << " y2";
}
else if (y3->value == 12)
{
cout << " y3";
}
else if (y4->value == 12)
{
cout << " y4";
}
else if (r1->value == 12)
{
cout << " r1";
}
else if (r2->value == 12)
{
cout << " r2";
}
else if (r3->value == 12)
{
cout << " r3";
}
else if (r4->value == 12)
{
cout << " r4";
}
else
{
cout << " 12";
}
cout << " ";
if (y2 == british)
{
cout << "y2";
}
else
{
cout << " ";
}
cout << endl;
//space 100
if (b1 == italian)
{
cout << "b1";
}
else
{
cout << " ";
}
if (b1->value == 100)
{
cout << "b1";
}
else if (b2->value == 100)
{
cout << "b2";
}
else if (b3->value == 100)
{
cout << "b3";
}
else if (b4->value == 100)
{
cout << "b4";
}
else if (g1->value == 100)
{
cout << "g1";
}
else if (g2->value == 100)
{
cout << "g2";
}
else if (g3->value == 100)
{
cout << "g3";
}
else if (g4->value == 100)
{
cout << "g4";
}
else if (y1->value == 100)
{
cout << "y1";
}
else if (y2->value == 100)
{
cout << "y2";
}
else if (y3->value == 100)
{
cout << "y3";
}
else if (y4->value == 100)
{
cout << "y4";
}
else if (r1->value == 100)
{
cout << "r1";
}
else if (r2->value == 100)
{
cout << "r2";
}
else if (r3->value == 100)
{
cout << "r3";
}
else if (r4->value == 100)
{
cout << "r4";
}
else
{
cout << "BS";
}
//space 101
if (b1->value == 111)
{
cout << " b1";
}
else if (b2->value == 111)
{
cout << " b2";
}
else if (b3->value == 111)
{
cout << " b3";
}
else if (b4->value == 111)
{
cout << " b4";
}
else
{
cout << " B1";
}
//space 102
if (b1->value == 112)
{
cout << "b1";
}
else if (b2->value == 112)
{
cout << "b2";
}
else if (b3->value == 112)
{
cout << "b3";
}
else if (b4->value == 112)
{
cout << "b4";
}
else
{
cout << "B2";
}
//space 103
if (b1->value == 113)
{
cout << "b1";
}
else if (b2->value == 113)
{
cout << "b2";
}
else if (b3->value == 113)
{
cout << "b3";
}
else if (b4->value == 113)
{
cout << "b4";
}
else
{
cout << "B3";
}
//space 104
if (b1->value == 114)
{
cout << "b1";
}
else if (b2->value == 114)
{
cout << "b2";
}
else if (b3->value == 114)
{
cout << "b3";
}
else if (b4->value == 114)
{
cout << "b4";
}
else
{
cout << "B4";
}
cout << " ";
//space 304
if (y1->value == 314)
{
cout << "y1";
}
else if (y2->value == 314)
{
cout << "y2";
}
else if (y3->value == 314)
{
cout << "y3";
}
else if (y4->value == 314)
{
cout << "y4";
}
else
{
cout << "Y4";
}
//space 303
if (y1->value == 313)
{
cout << "y1";
}
else if (y2->value == 313)
{
cout << "y2";
}
else if (y3->value == 313)
{
cout << "y3";
}
else if (y4->value == 313)
{
cout << "y4";
}
else
{
cout << "Y3";
}
//space 302
if (y1->value == 312)
{
cout << "y1";
}
else if (y2->value == 312)
{
cout << "y2";
}
else if (y3->value == 312)
{
cout << "y3";
}
else if (y4->value == 312)
{
cout << "y4";
}
else
{
cout << "Y2";
}
//space 301
if (y1->value == 311)
{
cout << "y1";
}
else if (y2->value == 311)
{
cout << "y2";
}
else if (y3->value == 311)
{
cout << "y3";
}
else if (y4->value == 311)
{
cout << "y4";
}
else
{
cout << "Y1";
}
//space 300
if (b1->value == 300)
{
cout << " b1";
}
else if (b2->value == 300)
{
cout << " b2";
}
else if (b3->value == 300)
{
cout << " b3";
}
else if (b4->value == 300)
{
cout << " b4";
}
else if (g1->value == 300)
{
cout << " g1";
}
else if (g2->value == 300)
{
cout << " g2";
}
else if (g3->value == 300)
{
cout << " g3";
}
else if (g4->value == 300)
{
cout << " g4";
}
else if (y1->value == 300)
{
cout << " y1";
}
else if (y2->value == 300)
{
cout << " y2";
}
else if (y3->value == 300)
{
cout << " y3";
}
else if (y4->value == 300)
{
cout << " y4";
}
else if (r1->value == 300)
{
cout << " r1";
}
else if (r2->value == 300)
{
cout << " r2";
}
else if (r3->value == 300)
{
cout << " r3";
}
else if (r4->value == 300)
{
cout << " r4";
}
else
{
cout << " YS";
}
if (y1 == british)
{
cout << "y1";
}
else
{
cout << " ";
}
cout << endl;
if (b2 == italian)
{
cout << "b2";
}
else
{
cout << " ";
}
//space 24
if (b1->value == 24)
{
cout << " b1";
}
else if (b2->value == 24)
{
cout << " b2";
}
else if (b3->value == 24)
{
cout << " b3";
}
else if (b4->value == 24)
{
cout << " b4";
}
else if (g1->value == 24)
{
cout << " g1";
}
else if (g2->value == 24)
{
cout << " g2";
}
else if (g3->value == 24)
{
cout << " g3";
}
else if (g4->value == 24)
{
cout << " g4";
}
else if (y1->value == 24)
{
cout << " y1";
}
else if (y2->value == 24)
{
cout << " y2";
}
else if (y3->value == 24)
{
cout << " y3";
}
else if (y4->value == 24)
{
cout << " y4";
}
else if (r1->value == 24)
{
cout << " r1";
}
else if (r2->value == 24)
{
cout << " r2";
}
else if (r3->value == 24)
{
cout << " r3";
}
else if (r4->value == 24)
{
cout << " r4";
}
else
{
cout << " 24";
}
//space 13
cout << " ";
if (b1->value == 13)
{
cout << " b1";
}
else if (b2->value == 13)
{
cout << " b2";
}
else if (b3->value == 13)
{
cout << " b3";
}
else if (b4->value == 13)
{
cout << " b4";
}
else if (g1->value == 13)
{
cout << " g1";
}
else if (g2->value == 13)
{
cout << " g2";
}
else if (g3->value == 13)
{
cout << " g3";
}
else if (g4->value == 13)
{
cout << " g4";
}
else if (y1->value == 13)
{
cout << " y1";
}
else if (y2->value == 13)
{
cout << " y2";
}
else if (y3->value == 13)
{
cout << " y3";
}
else if (y4->value == 13)
{
cout << " y4";
}
else if (r1->value == 13)
{
cout << " r1";
}
else if (r2->value == 13)
{
cout << " r2";
}
else if (r3->value == 13)
{
cout << " r3";
}
else if (r4->value == 13)
{
cout << " r4";
}
else
{
cout << " 13";
}
cout << " YE" << endl;
if (b3 == italian)
{
cout << "b3";
}
else
{
cout << " ";
}
//space 23
if (b1->value == 23)
{
cout << " b1";
}
else if (b2->value == 23)
{
cout << " b2";
}
else if (b3->value == 23)
{
cout << " b3";
}
else if (b4->value == 23)
{
cout << " b4";
}
else if (g1->value == 23)
{
cout << " g1";
}
else if (g2->value == 23)
{
cout << " g2";
}
else if (g3->value == 23)
{
cout << " g3";
}
else if (g4->value == 23)
{
cout << " g4";
}
else if (y1->value == 23)
{
cout << " y1";
}
else if (y2->value == 23)
{
cout << " y2";
}
else if (y3->value == 23)
{
cout << " y3";
}
else if (y4->value == 23)
{
cout << " y4";
}
else if (r1->value == 23)
{
cout << " r1";
}
else if (r2->value == 23)
{
cout << " r2";
}
else if (r3->value == 23)
{
cout << " r3";
}
else if (r4->value == 23)
{
cout << " r4";
}
else
{
cout << " 23";
}
//space 404
if (r1->value == 414)
{
cout << " r1";
}
else if (r2->value == 414)
{
cout << " r2";
}
else if (r3->value == 414)
{
cout << " r3";
}
else if (r4->value == 414)
{
cout << " r4";
}
else
{
cout << " R4";
}
//space 14
if (b1->value == 14)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 14)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 14)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 14)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 14)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 14)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 14)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 14)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 14)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 14)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 14)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 14)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 14)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 14)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 14)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 14)
{
cout << " r4";
cout << endl;
}
else
{
cout << " 14";
cout << endl;
}
if (b4 == italian)
{
cout << "b4";
}
else
{
cout << " ";
}
//space 22
if (b1->value == 22)
{
cout << " b1";
}
else if (b2->value == 22)
{
cout << " b2";
}
else if (b3->value == 22)
{
cout << " b3";
}
else if (b4->value == 22)
{
cout << " b4";
}
else if (g1->value == 22)
{
cout << " g1";
}
else if (g2->value == 22)
{
cout << " g2";
}
else if (g3->value == 22)
{
cout << " g3";
}
else if (g4->value == 22)
{
cout << " g4";
}
else if (y1->value == 22)
{
cout << " y1";
}
else if (y2->value == 22)
{
cout << " y2";
}
else if (y3->value == 22)
{
cout << " y3";
}
else if (y4->value == 22)
{
cout << " y4";
}
else if (r1->value == 22)
{
cout << " r1";
}
else if (r2->value == 22)
{
cout << " r2";
}
else if (r3->value == 22)
{
cout << " r3";
}
else if (r4->value == 22)
{
cout << " r4";
}
else
{
cout << " 22";
}
//space 403
if (r1->value == 413)
{
cout << " r1";
}
else if (r2->value == 413)
{
cout << " r2";
}
else if (r3->value == 413)
{
cout << " r3";
}
else if (r4->value == 413)
{
cout << " r4";
}
else
{
cout << " R3";
}
//space 15
if (b1->value == 15)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 15)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 15)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 15)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 15)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 15)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 15)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 15)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 15)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 15)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 15)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 15)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 15)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 15)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 15)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 15)
{
cout << " r4";
cout << endl;
}
else
{
cout << " 15";
cout << endl;
}
//space 21
if (b1->value == 21)
{
cout << " b1";
}
else if (b2->value == 21)
{
cout << " b2";
}
else if (b3->value == 21)
{
cout << " b3";
}
else if (b4->value == 21)
{
cout << " b4";
}
else if (g1->value == 21)
{
cout << " g1";
}
else if (g2->value == 21)
{
cout << " g2";
}
else if (g3->value == 21)
{
cout << " g3";
}
else if (g4->value == 21)
{
cout << " g4";
}
else if (y1->value == 21)
{
cout << " y1";
}
else if (y2->value == 21)
{
cout << " y2";
}
else if (y3->value == 21)
{
cout << " y3";
}
else if (y4->value == 21)
{
cout << " y4";
}
else if (r1->value == 21)
{
cout << " r1";
}
else if (r2->value == 21)
{
cout << " r2";
}
else if (r3->value == 21)
{
cout << " r3";
}
else if (r4->value == 21)
{
cout << " r4";
}
else
{
cout << " 21";
}
//space 402
if (r1->value == 412)
{
cout << " g1";
}
else if (r2->value == 412)
{
cout << " g2";
}
else if (r3->value == 412)
{
cout << " g3";
}
else if (r4->value == 412)
{
cout << " g4";
}
else
{
cout << " R2";
}
//space 16
if (b1->value == 16)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 16)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 16)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 16)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 16)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 16)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 16)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 16)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 16)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 16)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 16)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 16)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 16)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 16)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 16)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 16)
{
cout << " r4";
cout << endl;
}
else
{
cout << " 16";
cout << endl;
}
//space 20
if (b1->value == 20)
{
cout << " b1";
}
else if (b2->value == 20)
{
cout << " b2";
}
else if (b3->value == 20)
{
cout << " b3";
}
else if (b4->value == 20)
{
cout << " b4";
}
else if (g1->value == 20)
{
cout << " g1";
}
else if (g2->value == 20)
{
cout << " g2";
}
else if (g3->value == 20)
{
cout << " g3";
}
else if (g4->value == 20)
{
cout << " g4";
}
else if (y1->value == 20)
{
cout << " y1";
}
else if (y2->value == 20)
{
cout << " y2";
}
else if (y3->value == 20)
{
cout << " y3";
}
else if (y4->value == 20)
{
cout << " y4";
}
else if (r1->value == 20)
{
cout << " r1";
}
else if (r2->value == 20)
{
cout << " r2";
}
else if (r3->value == 20)
{
cout << " r3";
}
else if (r4->value == 20)
{
cout << " r4";
}
else
{
cout << " 20";
}
//space 401
if (r1->value == 411)
{
cout << " r1";
}
else if (g2->value == 411)
{
cout << " r2";
}
else if (g3->value == 411)
{
cout << " r3";
}
else if (g4->value == 411)
{
cout << " r4";
}
else
{
cout << " R1";
}
//space 17
if (b1->value == 17)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 17)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 17)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 17)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 17)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 17)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 17)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 17)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 17)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 17)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 17)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 17)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 17)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 17)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 17)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 17)
{
cout << " r4";
cout << endl;
}
else
{
cout << " 17";
cout << endl;
}
//space 19
if (b1->value == 19)
{
cout << " b1";
}
else if (b2->value == 19)
{
cout << " b2";
}
else if (b3->value == 19)
{
cout << " b3";
}
else if (b4->value == 19)
{
cout << " b4";
}
else if (g1->value == 19)
{
cout << " g1";
}
else if (g2->value == 19)
{
cout << " g2";
}
else if (g3->value == 19)
{
cout << " g3";
}
else if (g4->value == 19)
{
cout << " g4";
}
else if (y1->value == 19)
{
cout << " y1";
}
else if (y2->value == 19)
{
cout << " y2";
}
else if (y3->value == 19)
{
cout << " y3";
}
else if (y4->value == 19)
{
cout << " y4";
}
else if (r1->value == 19)
{
cout << " r1";
}
else if (r2->value == 19)
{
cout << " r2";
}
else if (r3->value == 19)
{
cout << " r3";
}
else if (r4->value == 19)
{
cout << " r4";
}
else
{
cout << " 19";
}
//space 18
if (b1->value == 18)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 18)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 18)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 18)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 18)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 18)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 18)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 18)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 18)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 18)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 18)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 18)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 18)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 18)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 18)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 18)
{
cout << " r4";
cout << endl;
}
else
{
cout << " 18";
cout << endl;
}
//space 400
if (b1->value == 400)
{
cout << " b1";
cout << endl;
}
else if (b2->value == 400)
{
cout << " b2";
cout << endl;
}
else if (b3->value == 400)
{
cout << " b3";
cout << endl;
}
else if (b4->value == 400)
{
cout << " b4";
cout << endl;
}
else if (g1->value == 400)
{
cout << " g1";
cout << endl;
}
else if (g2->value == 400)
{
cout << " g2";
cout << endl;
}
else if (g3->value == 400)
{
cout << " g3";
cout << endl;
}
else if (g4->value == 400)
{
cout << " g4";
cout << endl;
}
else if (y1->value == 400)
{
cout << " y1";
cout << endl;
}
else if (y2->value == 400)
{
cout << " y2";
cout << endl;
}
else if (y3->value == 400)
{
cout << " y3";
cout << endl;
}
else if (y4->value == 400)
{
cout << " y4";
cout << endl;
}
else if (r1->value == 400)
{
cout << " r1";
cout << endl;
}
else if (r2->value == 400)
{
cout << " r2";
cout << endl;
}
else if (r3->value == 400)
{
cout << " r3";
cout << endl;
}
else if (r4->value == 400)
{
cout << " r4";
cout << endl;
}
else
{
cout << " Italy";
cout << endl;
}
if (r1 == spanish && r2 != spanish && r3 != spanish && g4 != spanish)
{
cout << " r1";
cout << endl;
}
if (r1 == spanish && r2 == spanish && r3 != spanish && r4 != spanish)
{
cout << " r1r2";
cout << endl;
}
if (r1 == spanish && r2 != spanish && r3 == spanish && r4 != spanish)
{
cout << " r1r3";
cout << endl;
}
if (r1 == spanish && r2 != spanish && r3 != spanish && r4 == spanish)
{
cout << " r1r4";
cout << endl;
}
if (r1 == spanish && r2 == spanish && r3 == spanish && r4 != spanish)
{
cout << " r1r2r3";
cout << endl;
}
if (r1 == spanish && r2 != spanish && r3 == spanish && r4 == spanish)
{
cout << " r1r3r4";
cout << endl;
}
if (r1 == spanish && r2 == spanish && r3 != spanish && r4 == spanish)
{
cout << " r1r2r4";
cout << endl;
}
if (r1 == spanish && r2 == spanish && r3 == spanish && r4 == spanish)
{
cout << " r1r2r3r4";
cout << endl;
}
if (r1 != spanish && r2 == spanish && r3 != spanish && r4 != spanish)
{
cout << " r2";
cout << endl;
}
if (r1 != spanish && r2 == spanish && r3 == spanish && r4 != spanish)
{
cout << " r2r3";
cout << endl;
}
if (r1 != spanish && r2 == spanish && r3 != spanish && r4 == spanish)
{
cout << " r2r4";
cout << endl;
}
if (r1 != spanish && r2 == spanish && r3 == spanish && r4 == spanish)
{
cout << " r2r3r4";
cout << endl;
}
if (r1 != spanish && r2 != spanish && r3 == spanish && r4 != spanish)
{
cout << " r3";
cout << endl;
}
if (r1 != spanish && r2 != spanish && r3 == spanish && r4 == spanish)
{
cout << " r3r4";
cout << endl;
}
if (r1 != spanish && r2 != spanish && r3 != spanish && r4 == spanish)
{
cout << " r4";
cout << endl;
}
if (r1 != spanish && r2 != spanish && r3 != spanish && r4 != spanish)
{
cout << " ";
cout << endl;
}