Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Linuxmania Linuxmania is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 392
Rep Power: 15
Linuxmania mempunyai hidup yang Normal
Default Share Source Code Game C++

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Terkait
Thread Thread Starter Forum Replies Last Post
PAKET MSC (Mega SOURCE CODE) : 160 SOURCE CODE PROGRAM DATABASE PILIHAN, SIAP PAKAI ! penjualcd CD/DVD 0 10th September 2012 01:20 PM
[share] source code sistem VB6 LONG SMS lumpiabasah Lounge 0 27th May 2012 10:45 PM
JUAL PAKET MSC (Mega SOURCE CODE) : 160 SOURCE CODE PROGRAM DATABASE PILIHAN, SIAP PAKAI ! hackerkuntet Software Original & Open Source 0 27th May 2012 01:54 PM
[SHARE] Website source code vb6 Servermaster Programming 0 20th November 2011 02:12 AM
VB.Net Canibal Game Source Code Braincode Programming 0 11th November 2011 02:20 PM

 


All times are GMT +7. The time now is 01:28 AM.