4-in-a-row Detector?

  • SpeClops
    6th May 2014 Member 0 Permalink

    I am making a 'Connect Four' game in The Powder Toy. Currently it's very successful, currently running these functions flawlessly:

    - Stacking

    - Column selecting

    - Turn changing (you cant select your column when it's not your turn)

    - Randomiser CPU

     

    But there are 2 functions that I'm just not genial enough to be able to make:

    - A 4-in-a-row detector (can detect when there's 4 in a row of the same colour in any direction)

    - Display the winner (a byproduct of the 4-in-a-row detector)

     

    If you really, REALLY think you can help me with this, then check out my saves, find the Connect Four one and then make some designs.

     

    I will credit you in the description of the save & give you a huge thanks :)

  • h4zardz1
    6th May 2014 Member 0 Permalink
    i think there is too many WIFI...
  • jklujm
    8th May 2014 Member 0 Permalink

    I don't know where to start, sorry. Maybe someone more experienced can help you. (I'm bumping your post, friend :) )

  • Sandwichlizard
    8th May 2014 Member 0 Permalink

    so this is your save id:1529899

     

     

    I would like to try and help.  it would be nice to have some basic instructions on what the player needs to do to start the game and take a turn.  also it appears that there is some flaw that turns one of column 3 upper locations on regardless of which column you select, or I am doing something wrong.   just the same, I am going to work on an idea.  I will let you know what I learn.

     

    I have a possible solution.  I am not quite done.  I  will send you an ID soon.

     

     

    Edited 4 times by Sandwichlizard. Last: 9th May 2014