|
|
|||||||
| Computers & Information Technologies « Everything related to computers and internet. » |
![]() |
|
|
Share | Thread Tools | Search this Thread |
|
|
#1 |
|
Registered Member
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
|
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... |
|
|
|
|
|
#2 |
|
Registered Member
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
|
man ana kenet 3am fatech 3aleh w ma 3am ble2i
|
|
|
|
|
|
#3 |
|
Registered Member
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
|
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 |
|
|
|
|
|
#4 |
|
Registered Member
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
|
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 |
|
|
|
|
|
#5 | |
|
Registered Member
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
|
Quote:
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 |
|
|
|
|
|
|
#6 |
|
Super Moderator
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
|
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. |
|
|
|
|
|
#7 |
|
Registered Member
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
|
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 |
|
|
|
|
|
#8 |
|
Registered Member
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
|
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لا عمالة ولا عمولة ولا دم |
|
|
|
|
|
#9 |
|
Registered Member
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
|
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
__________________
I pwn n00bs |
|
|
|
|
|
#10 |
|
Registered Member
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
|
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 |
|
|
|
![]() |
|
| Tags |
| helpc |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|