User Profile

Collapse

Profile Sidebar

Collapse
nimisha
nimisha
Last Activity: May 25 '06, 05:51 AM
Joined: Apr 6 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nimisha
    started a topic Tree generation & minimax
    in C

    Tree generation & minimax

    I have been trying to learn how to do a c++ tic tac toe game, with first implementing the game tree in a function and then having the AI in another function which uses minimax algorithm. I came across the following code in my search for sources that would help me get a better understanding:

    Code:
      
    /** evaluate board state from player's point of view */
      int evaluate(Node node, int player) { /* using NEGMAX version of MINIMAX
    ...
    See more | Go to post

  • nimisha
    replied to Game Trees?
    in C
    Ok thanks for the site.
    But I don't know if it is just me, but having diagrams doesn't help me a great deal. So basically I'd have to draw the entire tree out, which is over a thousand possibilities.. . but how would one put a game tree into code? This is what I was trying to find examples of, but all sites relating to game trees just do diagrams.
    See more | Go to post

    Leave a comment:


  • nimisha
    started a topic Game Trees?
    in C

    Game Trees?

    I've been trying to expand my c++ coding abilities and was wondering how one would generate a full game tree for the game of tic-tac-toe? I've implemented the board with linked lists. I've looked at some books and sites but can't seem to find a good starting point on how to generate a full game tree in the one function? Cause using a game tree will then enable a use of the minimax algorithm which I'm also unsure about but heard it is good to use...
    See more | Go to post

  • nimisha
    started a topic .sh programming help

    .sh programming help

    I'm only new to learning shell programming and we have this current task to create a .sh program (basic shell only) that can output a web access statistics report of accesses for each month in a year or total number of accesses in a particular month in a year selected by the user.

    So what we have is a .txt file containing lines like the following:
    66.196.90.230 - - [01/Mar/2004:01:28:59 +1000] "GET /robots.txt HTTP/1.0"...
    See more | Go to post
No activity results to display
Show More
Working...