Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ATL doubt Pin
Nish Nishant2-Mar-02 23:12
sitebuilderNish Nishant2-Mar-02 23:12 
GeneralRe: ATL doubt Pin
pba_3-Mar-02 2:52
pba_3-Mar-02 2:52 
GeneralRe: ATL doubt Pin
pba_3-Mar-02 3:13
pba_3-Mar-02 3:13 
Questionhow to new a doc in MDI application in programme?? Pin
benben2-Mar-02 17:40
benben2-Mar-02 17:40 
AnswerRe: how to new a doc in MDI application in programme?? Pin
Roger Allen4-Mar-02 1:16
Roger Allen4-Mar-02 1:16 
GeneralHelp writing a game tree for tictactoe Pin
John Cruz2-Mar-02 17:02
John Cruz2-Mar-02 17:02 
GeneralRe: Help writing a game tree for tictactoe Pin
alex.barylski2-Mar-02 18:32
alex.barylski2-Mar-02 18:32 
GeneralRe: Help writing a game tree for tictactoe Pin
John Cruz2-Mar-02 18:50
John Cruz2-Mar-02 18:50 
umm... i dont really have to do it using recursions. i am just practicing it for fun. oh a game tree is like a family with all the possible moves that can happen when playing tictactoe. i got my algorithm already just that i am having a harding trying to figure out how to evaluate the players moves then return the best move the computer can move. i was going to implement that by looking at a game tree but i can figure out how to write one. oh, i am trying to determine how the computer will move on the board after the player has moved. i made the computer as the 1st one to move as default. here is my algorithm:

Const int MAXDEPTH = 9;

CheckForMoves()
If Board is all Occupied or Player Won or Depthcount > MAXDEPTH
- return.
Else
- DepthCount++;
- GetPlayerMove(row & column);
- Evaluate Player Move and return the best move the computer can take.
If the Move the computer has made is a good move and The Board Cell is
empty.
- Computer makes the move
Else
- CheckForMoves() <-- Check for moves

I am getting a hard time trying to figure out how to evaluate the player move and how to make it return the best possible move and also how to check if the move done is a good move. well, if you guys think my algorithm logic is wrong let me know. and if so can you tell me a better algorithm to implement it Smile | :)
thank you very much...
GeneralRe: Help writing a game tree for tictactoe Pin
alex.barylski2-Mar-02 23:20
alex.barylski2-Mar-02 23:20 
GeneralRe: Help writing a game tree for tictactoe Pin
John Cruz3-Mar-02 0:53
John Cruz3-Mar-02 0:53 
GeneralKeyboard delay time Pin
PJ Arends2-Mar-02 16:29
professionalPJ Arends2-Mar-02 16:29 
GeneralRe: Keyboard delay time Pin
Nish Nishant2-Mar-02 17:37
sitebuilderNish Nishant2-Mar-02 17:37 
GeneralRe: Keyboard delay time Pin
Michael Dunn2-Mar-02 18:59
sitebuilderMichael Dunn2-Mar-02 18:59 
GeneralRe: Keyboard delay time Pin
PJ Arends2-Mar-02 19:28
professionalPJ Arends2-Mar-02 19:28 
GeneralRe: Keyboard delay time Pin
Nish Nishant2-Mar-02 19:24
sitebuilderNish Nishant2-Mar-02 19:24 
GeneralHelp with Array Sort Pin
Loli102-Mar-02 10:41
Loli102-Mar-02 10:41 
GeneralRe: Help with Array Sort Pin
Anders Molin2-Mar-02 11:37
professionalAnders Molin2-Mar-02 11:37 
GeneralRe: Help with Array Sort Pin
Tim Smith2-Mar-02 11:48
Tim Smith2-Mar-02 11:48 
GeneralRe: Help with Array Sort Pin
Nish Nishant2-Mar-02 15:06
sitebuilderNish Nishant2-Mar-02 15:06 
GeneralCListCtrl and Row Height Pin
NodeX2-Mar-02 9:41
NodeX2-Mar-02 9:41 
GeneralRe: CListCtrl and Row Height Pin
alex.barylski2-Mar-02 16:06
alex.barylski2-Mar-02 16:06 
GeneralRe: CListCtrl and Row Height Pin
NodeX2-Mar-02 22:59
NodeX2-Mar-02 22:59 
GeneralRe: CListCtrl and Row Height Pin
Tim Smith3-Mar-02 2:20
Tim Smith3-Mar-02 2:20 
GeneralNeed help with MFC ! ! ! ! Pin
2-Mar-02 8:58
suss2-Mar-02 8:58 
GeneralRe: Need help with MFC ! ! ! ! Pin
Mazdak2-Mar-02 9:20
Mazdak2-Mar-02 9:20 

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.