Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Building game tree

  1. #1
    Join Date
    May 2011
    My Mood
    Thanked 0 Times in 0 Posts

    Default Building game tree

    HI, I was wondering if someone can give an example in words for a simple game so that I can practice building the game tree to find best moves for a minimax algorithm. Online sources only show the game tree, but I want to build it from scratch if someone can put up a simple eg that be great. I want to get better understanding before diving into implementing minimax algorithm on my own.

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 636 Times in 540 Posts

    Default Re: Building game tree

    Tic-Tac-Toe is a pretty traditional game to use as an intro to minimax. You can get more complicated by making it bigger than 3x3 or even 3-dimensional.

    After that, you can move on to checkers (or Kōnane, which is Hawaiian checkers, or Chinese Checkers) and eventually chess.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. binary tree not building correctly
    By NCNerdGirl in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 21st, 2012, 12:24 PM
  2. Replies: 3
    Last Post: January 6th, 2012, 09:18 AM
  3. Building a binary search tree
    By Herah in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 28th, 2011, 07:29 AM
  4. help building up GUI for poker game
    By Pencil in forum AWT / Java Swing
    Replies: 5
    Last Post: October 26th, 2010, 02:53 PM
  5. Data Structures(Binary Search Tree to AVL Tree)ASAP
    By jfAdik in forum Algorithms & Recursion
    Replies: 2
    Last Post: April 5th, 2010, 03:58 AM