coding clever program

This is a discussion on coding clever program within the Game Programming forums, part of the General Programming Boards category; Hi, i have written a program to give me a solution to the old board game solitaire, with the pegs ...

  1. #1
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,406

    coding clever program

    Hi, i have written a program to give me a solution to the old board game solitaire, with the pegs in the grid.
    the thing is at the moment it only plays like somebody with a blindfold on.
    does anybody have any ideas on how to make programs 'cleverer' i have tried adding a few rules to its play but its not making much difference and i know i am missing the point of how to approach it, it needs to know whats a good situation and whats a bad situation etc..

    any ideas much appreciated!

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Well, first you need to search the web for a winning strategy, i.e. rules to follow to win the game. Then you need to formalize them in such a way that you can put them into code. Finally, you do just that.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. Coding Woes: Program on the Fritz
    By astrodude15 in forum C Programming
    Replies: 8
    Last Post: 04-26-2007, 11:14 AM
  4. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 10:17 PM
  5. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21