Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MsFlexGrid editable Pin
Toni788-Oct-03 17:50
Toni788-Oct-03 17:50 
GeneralRe: MsFlexGrid editable Pin
tidhar8-Oct-03 23:06
tidhar8-Oct-03 23:06 
GeneralRe: MsFlexGrid editable Pin
act_x9-Oct-03 4:37
act_x9-Oct-03 4:37 
GeneralRe: MsFlexGrid editable Pin
tidhar9-Oct-03 4:44
tidhar9-Oct-03 4:44 
GeneralNeed help in simple game Pin
Snyp8-Oct-03 14:55
Snyp8-Oct-03 14:55 
GeneralRe: Need help in simple game Pin
parths8-Oct-03 16:09
parths8-Oct-03 16:09 
GeneralRe: Need help in simple game Pin
Terry O'Nolley8-Oct-03 19:23
Terry O'Nolley8-Oct-03 19:23 
GeneralRe: Need help in simple game Pin
YaronNir9-Oct-03 0:05
YaronNir9-Oct-03 0:05 
Hi,

computer thinking games, oftenly use what is called 'heuristic' functions (search google for tic-tac-toe heuristic).

This means, that if you have a matrix (which represents the tic-tac-toe board game) then each cell receive a number defining the importancy of it. for example as we all know the most powerful cell in the tic-tac-toe board game, is the center cell (2,2). so you can give this cell the amount of 100 (arbitrary).

for starters thing of the values you can give for the cells. next when design the computer movement, search for the best value to move to (the highest is the best, the lowest is the worst)....

In computer science B.A every course that deals with A.I (artificial intelligence) explains heuristic. you also need to learn how to build a tree from the data and perform searches on that tree like (BFS - best first search) and others.....

hope i helped you to begin

Yaron

Ask not what your application can do for you,
Ask what you can do for your application
GeneralRe: Need help in simple game Pin
Member 139425924-Dec-04 20:05
Member 139425924-Dec-04 20:05 
Generalbuttons and word doc's Pin
N.Byarley8-Oct-03 14:37
N.Byarley8-Oct-03 14:37 
GeneralRe: buttons and word doc's Pin
Terry O'Nolley8-Oct-03 18:45
Terry O'Nolley8-Oct-03 18:45 
GeneralRe: buttons and word doc's Pin
N.Byarley8-Oct-03 20:33
N.Byarley8-Oct-03 20:33 
GeneralRe: buttons and word doc's Pin
Terry O'Nolley8-Oct-03 23:32
Terry O'Nolley8-Oct-03 23:32 
QuestionHow can I make the property sheet buttons in the XP style? Pin
bin89228-Oct-03 13:19
bin89228-Oct-03 13:19 
Generalwarning C4273 - inconsistent dll linkage. dllexport assumed. Pin
YaronNir8-Oct-03 12:54
YaronNir8-Oct-03 12:54 
QuestionHow to change the color of the dialog box Pin
Deepak Samuel8-Oct-03 12:15
Deepak Samuel8-Oct-03 12:15 
AnswerRe: How to change the color of the dialog box Pin
YaronNir8-Oct-03 13:16
YaronNir8-Oct-03 13:16 
QuestionEM_STREAMOUT and EditStreamCallback() function? Pin
Kayembi8-Oct-03 12:07
Kayembi8-Oct-03 12:07 
QuestionHow to make a dialog box pop up on receiving an event Pin
Deepak Samuel8-Oct-03 11:18
Deepak Samuel8-Oct-03 11:18 
GeneralWindows Xp Style Buttons Pin
Marissa1828-Oct-03 11:14
Marissa1828-Oct-03 11:14 
GeneralRe: Windows Xp Style Buttons Pin
Ravi Bhavnani8-Oct-03 11:51
professionalRavi Bhavnani8-Oct-03 11:51 
General"This" adress changing in the same object Pin
Chris Gilbert8-Oct-03 10:27
Chris Gilbert8-Oct-03 10:27 
GeneralRe: "This" adress changing in the same object Pin
Tim Smith8-Oct-03 11:19
Tim Smith8-Oct-03 11:19 
GeneralRe: "This" adress changing in the same object Pin
Chris Gilbert9-Oct-03 11:02
Chris Gilbert9-Oct-03 11:02 
GeneralRe: "This" adress changing in the same object Pin
ZoogieZork8-Oct-03 16:35
ZoogieZork8-Oct-03 16:35 

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.