You are browsing as a guest. Sign up (or log in) to start making projects!

Connect 4 ☆

  • 5 Devlogs
  • 13 Total hours

connect 4

Open comments for this post

1h 23m 11s logged

Added a proper GitHub release by making a jar file that is runnable in the terminal. At first, I tried to do this with Gradle, but that didn’t work out, so this way it works! Also edited the ReadMe with steps on how to run in your terminal

0
0
3
Ship #1

I made a simple terminal-based Connect Four game using Java. A lot of things were challenging, but the main challenges I had were figuring out how to check if a match was won horizontally, vertically, or specifically diagonally. There was also the loop logic for the play again feature. Initially, I had two loops, but I then realized only one was necessary. What I'm most proud of is figuring out the logic for the custom boards. If you test out the project, make sure to try out the tic-tac-toe version by making a 3-by-3 board!

  • 4 devlogs
  • 11h
  • 2.65x multiplier
  • 30 Stardust
Try project → See source code →
Open comments for this post

20m 45s logged

Edited the code so it stated whose turn it was, so that it was a little more presentable. Also added a read me and a demo link to the project

0
0
20
Open comments for this post

5h 44m 30s logged

Fixed the win logic and added a loop so you can play again. Also edited how things appear in the terminal, since I thought I could make it look better. It still looks simple, but I’m fine with it for now. Happy that it’s working at least! Maybe in the future I will make the computer mode more complicated.

0
0
5
Open comments for this post

2h 59m 14s logged

Edited the game logic so it checks if there are 4 pieces in a row or not. Also made some changes to the structure of the game so that it checks inputs correctly and actually says who won. Idk what i did though because it checks if someone won and ends the game but it lets both players go before it does that so im going to fix that next.

0
0
6

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…