Vcoderz Community
We create websites that have it all, beauty & brains
Lebanon Web Design & Development - Coddict
 

Go Back   Vcoderz Community > Computer Zone > Computers & Information Technologies

Notices

Computers & Information Technologies « Everything related to computers and internet. »

Reply
 
Share Thread Tools Search this Thread
Old 01-15-2007   #1
OS7
Registered Member
 
OS7's Avatar
 
Last Online: 09-03-2009
Join Date: Mar 2006
Posts: 170
Thanks: 1
Thanked 36 Times in 20 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default [help]C++

IF any body bya3rif programing c++: PROGRAM OF A GAME TIC TAC TOE.
Ye3ne program x o
7ada 3endo fekra?


__________________
Lebanese Army...Atyab Gech.
May GOD protect Our Officers and soldiers...
OS7 is offline   Reply With Quote
Old 01-15-2007   #2
karim7
Registered Member
 
karim7's Avatar
 
Last Online: 04-29-2007
Join Date: Dec 2006
Posts: 236
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: help c++

man ana kenet 3am fatech 3aleh w ma 3am ble2i
karim7 is offline   Reply With Quote
Old 01-15-2007   #3
god
Registered Member
 
god's Avatar
 
Last Online: 02-14-2010
Join Date: Mar 2006
Posts: 846
Thanks: 71
Thanked 293 Times in 217 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: help c++

you have to make it know every possibility.. but i have another idea in mind, if you know the method by which you never lose (u always win or get tied if the other person knows it) you can make the program check for the position the user gave, and choose one of 2 or 3 good moves to make.. a.k.a badak t3allmo kel el moves, ma fi yfakkir la7alo.. ella eza badak tektob chi ktir sa3b :P W unwritable in c++ w vb w hek osas..
__________________
--Capitalisation is the only difference between "I helped my uncle Jack off a horse" and "I helped my uncle jack off a horse" !!
http://img482.imageshack.us/img482/4889/hell7ta.jpg
god is offline   Reply With Quote
Old 01-15-2007   #4
superoufa
Registered Member
 
superoufa's Avatar
 
Last Online: 09-26-2009
Join Date: Dec 2006
Posts: 49
Thanks: 12
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: [help]C++

hey man i found this file on the net i dont know if it will help u.
Hope it will.

N.B: just put in google " TIC TAC TOE C++ " and i think u will find what u need
Attached Files
File Type: pdf tictactoe.pdf (262.7 KB, 17 views)
superoufa is offline   Reply With Quote
Old 01-16-2007   #5
ZeRaW
Registered Member
 
ZeRaW's Avatar
 
Last Online: 04-15-2018
Join Date: Feb 2006
Posts: 624
Thanks: 2
Thanked 299 Times in 276 Posts
Groans: 0
Groaned at 1 Time in 1 Post
Default Re: help c++

Quote:
Originally Posted by god
you have to make it know every possibility.. but i have another idea in mind, if you know the method by which you never lose (u always win or get tied if the other person knows it) you can make the program check for the position the user gave, and choose one of 2 or 3 good moves to make.. a.k.a badak t3allmo kel el moves, ma fi yfakkir la7alo.. ella eza badak tektob chi ktir sa3b :P W unwritable in c++ w vb w hek osas..
god make it know every possibility is like if else conditions.
usually games like tic tac toe use simple AI like minimax
which means the enemy ealuates ur best move, then starts a loop to give like the best move possible with little loss. then he does it. depending how much u go in the tree it will result in a harder enemy.
this is what u get tought in basic ai classes anyways :P
__________________
I pwn n00bs
ZeRaW is offline   Reply With Quote
Old 01-16-2007   #6
Kingroudy
Super Moderator
 
Kingroudy's Avatar
 
Last Online: 02-16-2022
Join Date: May 2006
Posts: 5,580
Thanks: 1,888
Thanked 2,653 Times in 1,593 Posts
Groans: 55
Groaned at 35 Times in 32 Posts
Default Re: [help]C++

AI is artificial intelligence, just to clarify.
but chris is suggest you make your own game, use if else or switch case.
i know this is hard and takes a lot of time, but it is feasable.
__________________
click on 'Groan' to switch to my left testicle.
Kingroudy is offline   Reply With Quote
Old 01-16-2007   #7
ZeRaW
Registered Member
 
ZeRaW's Avatar
 
Last Online: 04-15-2018
Join Date: Feb 2006
Posts: 624
Thanks: 2
Thanked 299 Times in 276 Posts
Groans: 0
Groaned at 1 Time in 1 Post
Default Re: [help]C++

well actually in tic tac toe the choices are easy.
like write every move on paper and you will end up with lost of conditions and actions. let me see if i have like free 10 mins i ll try someth up and post it here :P
__________________
I pwn n00bs
ZeRaW is offline   Reply With Quote
Old 01-16-2007   #8
Mr.juste
Registered Member
 
Mr.juste's Avatar
 
Last Online: 11-18-2011
Join Date: Mar 2006
Posts: 966
Thanks: 46
Thanked 405 Times in 379 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Re: [help]C++

baddak teshtgghela arrays w tkhalle el pc y3abe randomly... w teshteghla do while loop we7de bwe7de la t3abiya kella w ma daroure ta3mela ennak ma tekhsar. U can do it bass min 2elo jlede yfakkir :s
__________________
التّاريخ لا يرحم, الشّعب لا يرحم و الله لن يرحم أمثالكم
ان الاصلاح لا يمكن ان ينجز بصانعي الفساد
http://img110.imageshack.us/img110/8...4311797ka8.gifلا عمالة ولا عمولة ولا دم
Mr.juste is offline   Reply With Quote
Old 01-16-2007   #9
ZeRaW
Registered Member
 
ZeRaW's Avatar
 
Last Online: 04-15-2018
Join Date: Feb 2006
Posts: 624
Thanks: 2
Thanked 299 Times in 276 Posts
Groans: 0
Groaned at 1 Time in 1 Post
Default Re: [help]C++

ok as promised here is a small tic tac toe i programmed for u (K)
this zip has the src code (but i only have .net 2005) and the release folder has the exe :P i dont have time to make it fancy so it is win32 dialog box + buttons :P i used a random enemy move, it can be made harder if u want but i think this is enough for a tic tac toe game.
hope u likes :P
Attached Files
File Type: zip TicTacToe.zip (185.1 KB, 20 views)
__________________
I pwn n00bs
ZeRaW is offline   Reply With Quote
Old 01-16-2007   #10
lebanese_a
Registered Member
 
lebanese_a's Avatar
 
Last Online: 04-15-2018
Join Date: Aug 2006
Posts: 1,549
Thanks: 31
Thanked 213 Times in 151 Posts
Groans: 0
Groaned at 1 Time in 1 Post
Default Re: [help]C++

I wanna try to write this in VB.NET! I liked the Idea,
I wrote a black jack game before w it's working (not that hard to do, it's just if total taba3 l dealer > 17 then stop dealing cards for dealer ) the hard thing was to do the cards > Numerical Value (1 to 10) , card # (1 to 52) and card type (valet de coeur........) bass mecheh l 7al, U'll be asked to test my beta soon eza ma 3andkone mechkleh
lebanese_a is offline   Reply With Quote
Reply

  Vcoderz Community > Computer Zone > Computers & Information Technologies

Tags
helpc



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump


All times are GMT +1. The time now is 07:50 PM.


Lebanon web design and development
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Share