complete code of Rush Hour is a game for one player, in which the player takes up the role of
a taxi driver who must collect money by dropping passengers to their
destinations
#include <iostream>
using namespace std;
char gap[4];
void initgap(void)
{
for (int i = 0; i < 4; i++)
{
gap[i] = ' ';
}
}
void discribeTable(void)
{
cout << '|' << gap[0] << '|' << gap[1] << '|' << gap[2] << '|' << gap[3] << '|' << endl;
}
int main(void)
{
initgap();
cout << "Empty Lot\n";
discribeTable();
gap[1] = '*';
gap[2] = '*';
cout << "Cars\n";
discribeTable();
return 0;
}
Comments
Leave a comment