Questions tagged [connect-four]

A game in which two players take turns dropping chips into a vertical grid until one player forms a line of four chips horizontally, vertically, or diagonally.

Filter by
Sorted by
Tagged with
5
votes
2answers
1k views

Connect Four (the OO approach)

I saw some approaches to the Connect Four game on a site. None of them seemed very OO like, therefore I'd like to present my implementation and request suggestions on how to make this code more ...
11
votes
3answers
7k views

Find longest sequence horizontally, vertically or diagonally in Connect Four game

I'm new to programming and also to Java and working on problems in Intro to Java by Robert Sedgewick. Here is my question: Connect Four: Given an N-by-N grid with each cell either occupied by an ...
9
votes
3answers
3k views

Stock Monte Carlo Tree Search implementation to a simple connect 5 game in Python

Requires Python version: 3.6+ fstrings included! External link: https://github.com/thejhonnyguy/Python-Stock-MCTS (Questions below) Main program: mcts.py ...
4
votes
3answers
1k views

Check for wins in a Connect4 variant

Me and my friend are trying to build a Connect4 game with a twist. The twist requires us to have a 7*7 board and to be always able to check all possibilities for a win for both players after each move....
2
votes
1answer
4k views

Basic Connect Four game

Here is a simple text-based version of connect four I made. I have been building this in an attempt to improve my Java skills (and possibly mention on my resume). My goals with this project are as ...