// Get to Flopside with C++ ! #include using namespace std; int main() { int blocks[8] = { 0xAD, 0xD6, 0xBA, 0x79, 0xEA, 0x1F, 0x67, 0xD5 }; int randIndex, state; srand(time(NULL)); while(true) { state = 0x00; for(int i=0; i < 8; i++) { randIndex = rand() % 8; state ^= blocks[randIndex]; cout << "Block " << randIndex+1 << endl; } if(state == 0xFF) { cout << "Winner!\n" << endl; exit(0); } cout << endl; } return 0; }