Click here to Skip to main content
15,911,524 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to link dialog to database Pin
coda_x12-Sep-03 18:18
coda_x12-Sep-03 18:18 
GeneralRe: how to link dialog to database Pin
David Crow15-Sep-03 3:09
David Crow15-Sep-03 3:09 
QuestionHow to run a VB program in VC++ Pin
mr200310-Sep-03 13:29
mr200310-Sep-03 13:29 
AnswerRe: How to run a VB program in VC++ Pin
Xiangyang Liu 刘向阳10-Sep-03 15:26
Xiangyang Liu 刘向阳10-Sep-03 15:26 
GeneralRe: How to run a VB program in VC++ Pin
mr200310-Sep-03 16:16
mr200310-Sep-03 16:16 
GeneralRe: How to run a VB program in VC++ Pin
Michael P Butler11-Sep-03 1:37
Michael P Butler11-Sep-03 1:37 
GeneralNeed help with A I programming Pin
Snyp10-Sep-03 13:00
Snyp10-Sep-03 13:00 
GeneralRe: Need help with A I programming Pin
Dangleberry10-Sep-03 22:52
sussDangleberry10-Sep-03 22:52 
Working with AI is like asking how a long a piece of string is. There is no definitive answer. However, the techniques used in games and indeed everywhere, construct their AI using a rule based methodology. You need to gradually develop rules that define the scope of consideration for the computer. If a player moves in a left column, then you need to do defensive checks first, for instance, to make sure the computer does not lose on the next move, before making an attacking move that will put the opponent in danger of losing. That is one rule that implements a defense before attack strategy (you may want to do something else). But that is the first basic strategy of the computer. You can then build on that, if I need to do a defense move, what should I consider etc. If you look a Bantumi on nokia phones, on easy mode, its possible to beat the computer with the exact same moves every time, because its a fixed rule based system (no random decisions), you may also want to incorporate random decisions further down the line (i.e. have a number of potential moves and instead of selecting the 'best' select one at random), this may make it easier and more human like Smile | :) . Obviously I can't code it for you cos that would take a fair amount of time, though not that much for a uni project Smile | :) Good luck.

Alan.
GeneralTree control getting grayed Pin
Binayak10-Sep-03 12:47
Binayak10-Sep-03 12:47 
GeneralUsing WS_HSCROLL in a dialog Pin
Marty1020304010-Sep-03 12:44
Marty1020304010-Sep-03 12:44 
GeneralRe: Using WS_HSCROLL in a dialog Pin
cje11-Sep-03 8:59
cje11-Sep-03 8:59 
GeneralRe: Using WS_HSCROLL in a dialog Pin
Marty1020304011-Sep-03 9:35
Marty1020304011-Sep-03 9:35 
GeneralQuestion about sockets… Pin
RobJones10-Sep-03 12:03
RobJones10-Sep-03 12:03 
GeneralRe: Question about sockets… Pin
Larry Antram10-Sep-03 12:27
Larry Antram10-Sep-03 12:27 
GeneralRe: Question about sockets… Pin
RobJones10-Sep-03 12:32
RobJones10-Sep-03 12:32 
GeneralRe: Question about sockets… Pin
Larry Antram10-Sep-03 12:55
Larry Antram10-Sep-03 12:55 
GeneralRe: Question about sockets… Pin
Ted Ferenc10-Sep-03 12:37
Ted Ferenc10-Sep-03 12:37 
Generalarrow keys PLEASE HELP!! Pin
Marissa18210-Sep-03 10:59
Marissa18210-Sep-03 10:59 
GeneralRe: arrow keys PLEASE HELP!! Pin
Neville Franks10-Sep-03 11:33
Neville Franks10-Sep-03 11:33 
GeneralQuick Question Regarding Visual C++ .net Pin
Anonymous10-Sep-03 10:24
Anonymous10-Sep-03 10:24 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
Michael Dunn10-Sep-03 10:29
sitebuilderMichael Dunn10-Sep-03 10:29 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
ZoogieZork10-Sep-03 13:15
ZoogieZork10-Sep-03 13:15 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
Anonymous11-Sep-03 5:22
Anonymous11-Sep-03 5:22 
Questionhow to do a dos-like thing in MFC prog Pin
ns10-Sep-03 9:39
ns10-Sep-03 9:39 
AnswerRe: how to do a dos-like thing in MFC prog Pin
David Crow10-Sep-03 9:46
David Crow10-Sep-03 9:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.