I am making card game with c++ so can i make simpler card randomizer here is code for ace I have made this far
#include <iostream>
#include <string>
using namespace std;
int kort1;
string ko1;
kort1 = rand() % 52 + 1;
if (kort1 == 1 or kort1 == 14 or kort1 == 27 or kort1 == 40){
ko1 = "| A| ";
}
and thanks
Aucun commentaire:
Enregistrer un commentaire