هذه اللعبة عل شكل اكواد برمجية
#include <iostream>
using namespace std;
int main()
{
string firstteam1;
string firstteam2;
string firstteam3;
string secondteam1;
string secondteam2;
string secondteam3;
string name;
string name1;
string ready;
string yesorno;
cout<<"\t\t\t\t 0000000 0 0 0 0000000 0 0 000000 "<<endl;
cout<<"\t\t\t\t 0 0 0 0 0 00 0 0 "<<endl;
cout<<"\t\t\t\t 0 0 0 0 0 0 0 0 0 "<<endl;
cout<<"\t\t\t\t 0 0 0 0 0 0 0 0 00000 "<<endl;
cout<<"\t\t\t\t 0 0 0 0 0 0 0 0 0 "<<endl;
cout<<"\t\t\t\t 0 0 0 0 0 0 00 0 "<<endl;
cout<<"\t\t\t\t 0000000 0 0 000000 0000000 0 0 000000 "<<endl;
cout<<"\n\n\n\n"<<endl;
cout<<"\t\t\t\t\t\t ***************************** "<<endl;
cout<<"\t\t\t\t\t\t * A-----------B-----------C * "<<endl;
cout<<"\t\t\t\t\t\t * | I--------L--------M | * "<<endl;
cout<<"\t\t\t\t\t\t * | | Y-----Z-----P | | * "<<endl;
cout<<"\t\t\t\t\t\t * | | | $ $ $ $ | | | * "<<endl;
cout<<"\t\t\t\t\t\t * | | | $ $ $ | | | * "<<endl;
cout<<"\t\t\t\t\t\t * H T S $ $ $J N D * "<<endl;
cout<<"\t\t\t\t\t\t * | | | $ $ $ | | | * "<<endl;
cout<<"\t\t\t\t\t\t * | | | $ $ $ $ | | | * "<<endl;
cout<<"\t\t\t\t\t\t * | | K-----R-----X | | * "<<endl;
cout<<"\t\t\t\t\t\t * | W--------q--------O | * "<<endl;
cout<<"\t\t\t\t\t\t * G-----------F-----------E * "<<endl;
cout<<"\t\t\t\t\t\t *****************************"<<endl;
cout<<"\n\n"<<endl;
cout<<"what is your name player one:"<<endl;
cin>>name;
cout<<"And you what is your name player two:"<<endl;
cin>>name1;
cout << "Type a symbol for your .."<<name<<"..team"<< endl;
cin >>firstteam1;
cin >>firstteam2;
cin >>firstteam3;
cout << "Type a symbol or number for your .."<<name1<<"..team"<< endl;
cin>>secondteam1;
cin>>secondteam1;
cin>>secondteam3;
cout<<" ...ID LINE...Are you Ready.."<<name1<<"..and.."<<name<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<"we will start with:.."<<name<<"...turn";
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * A---------"<<firstteam1<<"---------C *"<<endl;
cout<<" * | I------L------M | *"<<endl;
cout<<" * | | Y---Z---P | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S J--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---X | | *"<<endl;
cout<<" * | W------"<<firstteam3<<"------O | *"<<endl;
cout<<" * G---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<"now it is.. "<<name1<<"..turn"<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * "<<secondteam1<<"---------"<<firstteam1<<"---------C *"<<endl;
cout<<" * | I------L------M | *"<<endl;
cout<<" * | | Y---Z---P | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---"<<secondteam3<<" | | *"<<endl;
cout<<" * | W------"<<firstteam3<<"------O | *"<<endl;
cout<<" * G---------F---------E *"<<endl;;
cout<<" *************************"<<endl;
cout<<"And it is .."<<name<<".. turn "<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * "<<secondteam1<<"---------"<<firstteam1<<"---------C *"<<endl;
cout<<" * | I------L------M | *"<<endl;
cout<<" * | | Y---Z---P | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam1<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---"<<secondteam1<<" | | *"<<endl;
cout<<" * | "<<firstteam3<<"------q------O | *"<<endl;
cout<<" * G---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<"And it is .."<<name1<<".. turn "<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * A---------"<<firstteam1<<"---------C *"<<endl;
cout<<" * | "<<secondteam1<<"------L------M | *"<<endl;
cout<<" * | | Y---Z---P | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---"<<secondteam3<<" | | *"<<endl;
cout<<" * | "<<firstteam3<<"------q------O | *"<<endl;
cout<<" * G---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<" it is .."<<name<<".. turn "<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * "<<firstteam1<<"---------B---------C *"<<endl;
cout<<" * | "<<secondteam1<<"------L------M | *"<<endl;
cout<<" * | | Y---Z---P | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---"<<secondteam3<<" | | *"<<endl;
cout<<" * | "<<firstteam3<<"------q------O | *"<<endl;
cout<<" * G---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<name1<<".. turn "<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * "<<firstteam1<<"---------B---------C *"<<endl;
cout<<" * | I------"<<secondteam1<<"------M | *"<<endl;
cout<<" * | | Y---Z---P | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---"<<secondteam3<<" | | *"<<endl;
cout<<" * | "<<firstteam3<<"------q------O | *"<<endl;
cout<<" * G---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<name<<".. turn "<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * A---------B---------C *"<<endl;
cout<<" * | "<<firstteam1<<"------"<<secondteam1<<"------M | *"<<endl;
cout<<" * | | Y---Z---P | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---"<<secondteam3<<" | | *"<<endl;
cout<<" * | "<<firstteam3<<"------q------O | *"<<endl;
cout<<" * G---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<"\n\n"<<endl;
cout<<"^_^ "<<name<<".. 1\\0 ^_^"<<endl;
cin>>ready;
cout<<name1<<".. turn "<<endl;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * A---------B---------C *"<<endl;
cout<<" * | "<<firstteam1<<"------L------M | *"<<endl;
cout<<" * | | Y---Z---"<<secondteam1<<" | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---"<<secondteam1<<" | | *"<<endl;
cout<<" * | "<<firstteam3<<"------q------O | *"<<endl;
cout<<" * G---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<"\n\n"<<endl;
cout<<"^_^ ooooh "<<name1<<".. 1\\1 ^_^"<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<"The game has become enthusiastic. The first to make the last streak is to win ^^ID LINE^^"<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<name<<".. turn "<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * A---------B---------C *"<<endl;
cout<<" * | "<<firstteam1<<"------L------M | *"<<endl;
cout<<" * | | Y---z---"<<secondteam1<<" | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---"<<secondteam1<<" | | *"<<endl;
cout<<" * | W------q------O | *"<<endl;
cout<<" * "<<firstteam3<<"---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<name1<<".. turn "<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * A---------B---------C *"<<endl;
cout<<" * | "<<firstteam1<<"------L------M | *"<<endl;
cout<<" * | | Y---z---"<<secondteam1<<" | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * H--"<<firstteam2<<"--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---"<<secondteam3<<"---X | | *"<<endl;
cout<<" * | W------q------O | *"<<endl;
cout<<" * "<<firstteam3<<"---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<name<<"..turn"<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * A---------B---------C *"<<endl;
cout<<" * | "<<firstteam1<<"------L------M | *"<<endl;
cout<<" * | | Y---z---"<<secondteam1<<" | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * "<<firstteam2<<"--T--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---X | | *"<<endl;
cout<<" * | W------"<<secondteam3<<" ------O | *"<<endl;
cout<<" * "<<firstteam3<<"---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<name1<<"..turn"<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * A---------B---------C *"<<endl;
cout<<" * | "<<firstteam1<<"------L------M | *"<<endl;
cout<<" * | | Y---z---"<<secondteam1<<" | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * "<<firstteam2<<"--T--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---X | | *"<<endl;
cout<<" * | "<<secondteam1<<"------q------O | *"<<endl;
cout<<" * "<<firstteam3<<"---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<name<<"..turn"<<endl;
cin>>ready;
cout<<"\n\n\n"<<endl;
cout<<" *************************"<<endl;
cout<<" * "<<firstteam1<<"---------B---------C *"<<endl;
cout<<" * | I------L------M | *"<<endl;
cout<<" * | | Y---z---"<<secondteam1<<" | | *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * "<<firstteam2<<"--T--S "<<secondteam3<<"--N--D *"<<endl;
cout<<" * | | | | | | *"<<endl;
cout<<" * | | K---R---X | | *"<<endl;
cout<<" * | "<<secondteam1<<"------q------O | *"<<endl;
cout<<" * "<<firstteam3<<"---------F---------E *"<<endl;
cout<<" *************************"<<endl;
cout<<"\n\n\n"<<endl;
cout<<"GAME IS OVER"<<endl;
cout<<"the WIN is"<<name<<endl;
cout<<"\n\n\n\n"<<endl;
cout<<"^-^ ^-^ ^-^ ^-^ ^-^ ^-^ ^-^ "<<endl;
cout<<" ^-^ ^-^ ^-^ ^-^ ^-^ ^-^ "<<endl;
cout<<" ^-^ ^--^ ^-^ ^-^ ^-^ ^-^ ^-^ "<<endl;
cout<<" ^-^ ^-^ ^-^ ^-^ ^-^ ^-^ ^-^ "<<endl;
cout<<"\n\n\n\n"<<endl;
cout<<"do you want to play again??"<<endl;
cin>>yesorno;
if(yesorno=="yes")
{
cout<<"write ^^run^^"<<endl;
}
else
{
cout<<"thanks you for play ^^ID LINE^^"<<endl;
}
}