Checkers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wudoug119
    New Member
    • Nov 2006
    • 6

    Checkers

    Hi everyone I was wondering if anyone knows anything about making a program that lets two humans play checkers?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Well you need a data structure to represent the current state of the board

    A method for the player to indicate which piece they want to move and where they want to move it to

    And a piece of logic to make sure the move is legal

    Comment

    • wudoug119
      New Member
      • Nov 2006
      • 6

      #3
      How can I represent the size of the board. Do you mean by the amount of spaces on the board?

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        Originally posted by wudoug119
        How can I represent the size of the board. Do you mean by the amount of spaces on the board?
        I didn't say size I said state.

        By state of the board I mean which squares are free and which squares contain pieces and including type of piece and the player the piece belongs to.

        Comment

        Working...