About 19,200,000 results
Open links in new tab
  1. algorithm to check a connect four field - Stack Overflow

    Oct 2, 2012 · I'm wondering what's the best way to check for a winner on a connect four field. I'm interested in what you guys think and whether there is some "well-known" algorithm for this …

  2. How should I design a good evaluation function for Connect 4?

    I've a java implementation of "Connect 4" game (with a variable number of columns and rows) . This implementation use (according to the choice of the user) Mini-max algorithm of Mini-max …

  3. Java: How to check diagonal Connect Four win in 2D array

    Aug 21, 2016 · I have a Connect Four "board" which is a 6*7 2D char array populated with either spaces, X or O. The win condition is met when there are either four Xs or four Os in a row …

  4. java - Connect 4, check for winner algorithm - Stack Overflow

    Dec 16, 2020 · I'm writing some Java code to implement the Connect 4 game. A winner is declared when a player places four chips in a row, either horizontally, vertically or diagonally. …

  5. java - Connect 4 check for a win algorithm - Stack Overflow

    I know there is a lot of of questions regarding connect 4 check for a win. The issue is that most of other algorithms make my program have runtime errors, because they try to access an index …

  6. arrays - Connect 4 Diagonal Win Check - Stack Overflow

    Dec 9, 2018 · Edited to add: A 'winner' in Connect 4 sets 4 adjacent pieces (horizontal, vertical, or diagonal). In my game, this is represented by 'X' and '0'. Pieces are "dropped" from the top of …

  7. javascript - Connect four game logic - Stack Overflow

    Feb 20, 2019 · Building a connect four game as my first js project. My game has a background photo of a Connect Four game board and an HTML table on top to hold the tokens. The …

  8. Python: Connect 4 - Stack Overflow

    Feb 8, 2014 · i need to ask the user how many rows and how many columns the user would like so my game can handle whatever sized boards but i don't know how to change my code. …

  9. Connect Four Program using 2D Arrays in Java - Stack Overflow

    Connect Four Program using 2D Arrays in Java Asked 8 years, 9 months ago Modified 8 years, 5 months ago Viewed 3k times

  10. arrays - Simple connect four game in c - Stack Overflow

    Dec 7, 2019 · In this game, you have a 9 column, 6 row board. At the beginning, the first and last columns are populated with alternating player tokens. The computer will randomly pick which …