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

Four In A Row

  • 1 Devlogs
  • 2 Total hours

This is a Connect Fo... *cough* I mean Four In A Row game that you can play in the VS Code terminal.

Ship #1

This is my third silly little Java game. This is definitely not Connect Four, for sure not. Please play, it's cool.

Try with code: https://codehs.com/sandbox/garrettellis/new-sandbox-program-3

Without code: https://codehs.com/sandbox/garrettellis/new-sandbox-program-3/run

You can use these links to play it or go into the github thingy and download the .java file and open it in VS Code or use the .zip file and run the program from the file. Easiest way is just to click on the browser versions from above.

Basically this just lets you take turns placing your tile in one of the seven columns and puts it on top of the last one. The only actually complicated code is the code that checks all of the win cases because there are a lot of ways to have four in a row.

Play it, it's cool I promise.

  • 1 devlog
  • 2h
Try project → See source code →

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…