ni game prtama yg ane bt... maklum masi newbie.... minta kritik n saran dr agan. sori klo program ane slt dimengerti...
<div style="margin:20px; margin-top:5px">
Code:
#include
#include
#include
using namespace std;
bool first;
vector square(9,0);
short last_enemy;
short turn;
string human_move,enemy_move;
void home();
void display();
bool legal(short x);
void human();
void enemy();
bool check(string move);
int main()
{
char end;
short winner;
do
{
last_enemy = 0;
human_move = "";
enemy_move = "";
end = 'a';
for (short i = 0; i < square.size() ; ++i)
square[i] = char(i+49);
home();
for (turn = 1;turn
<div style="margin:20px; margin-top:5px">
Code:
#include
#include
#include
using namespace std;
bool first;
vector square(9,0);
short last_enemy;
short turn;
string human_move,enemy_move;
void home();
void display();
bool legal(short x);
void human();
void enemy();
bool check(string move);
int main()
{
char end;
short winner;
do
{
last_enemy = 0;
human_move = "";
enemy_move = "";
end = 'a';
for (short i = 0; i < square.size() ; ++i)
square[i] = char(i+49);
home();
for (turn = 1;turn
![]() |
|
|
Terkait
|
||||
| Thread | Forum | |||
| [share] source code sistem VB6 LONG SMS | Lounge | |||
| [SHARE] Website source code vb6 | Programming & Web | |||
| VB.Net Canibal Game Source Code | Programming & Web | |||




