Pente in Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FishFishRevolution
    GotR Creator
    • Nov 2003
    • 7251

    #1

    Pente in Java

    It's been a while since I coded this, but ever since I did, I've wondered how efficient it is. I'm pretty good at getting what I want done in a GUI or app, but efficiency is my enemy.

    Pente is a game where you try and place five stones in a row, horizontally, vertically, or diagonally. You can also make jumps if the stones look like this:

    OXX

    I'm O's, and I put an O here:

    OXXO

    I get to take the two X's and it ends up looking like this:

    O O

    Again, this can happen in any direction, has to be a pair. If a player captures a total of five pairs, or gets five of his pieces in a row, he wins.

    pente.zip

    I used recursion, it was the simplist way I could think of. Any comments?

    (The game is fun, you guys should run it and check it out)
  • firemon22
    Forum User
    • Oct 2004
    • 636

    #2
    RE: Pente in Java

    There is nothing in the zip

    https://soundcloud.com/djbdock acapellas over my beats
    http://tuneport.com/profile/bdockbeats my beats for yall to rap on

    Comment

    • FishFishRevolution
      GotR Creator
      • Nov 2003
      • 7251

      #3
      RE: Pente in Java

      Fix'd

      Comment

      • firemon22
        Forum User
        • Oct 2004
        • 636

        #4
        RE: Pente in Java

        how is this a game

        https://soundcloud.com/djbdock acapellas over my beats
        http://tuneport.com/profile/bdockbeats my beats for yall to rap on

        Comment

        • FishFishRevolution
          GotR Creator
          • Nov 2003
          • 7251

          #5
          RE: Pente in Java

          You know, if you don't have anything really to say, you don't have to post.

          I've answered that question in my last sentence already.

          Comment

          Working...