Project

Connect Four

Medium
908 completions
~ 17 hours
4.5

This project will help you understand how to use basic Kotlin components: data structures, conditions and loops. You'll learn how to interface with a program and develop a fun game to play.

Provided by

JetBrains Academy JetBrains Academy

About

Connect Four is a fun game for two players. The players place discs on a vertical board that is 7 columns wide and 6 rows tall. The goal of the game is to be the first to form a horizontal, vertical, or diagonal line of four discs. In this project, you will develop this game with a number of improvements.

Training project icon

Training project

This project allows you to practice and strengthen your coding skills, helping you get ready for more advanced tasks ahead.

What you'll learn

Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Print strings to the console and build the game board.
Develop the game logic and construct a loop that changes the game board based on players' input.
Design the win and draw logic. The program should determine whether a situation on the game board meets the win or draw criteria.
Allow players to play multiple games and keep their score. Let it be a competition!

Reviews

Wook Song avatar
Wook Song
1 year ago
I have learned that I need to think about the extensibility of the code first before writing it.
Judah avatar
Judah
1 year ago
I think the project showed a good amount of content, but I definitely think indexing needs to be addressed for diagonal connect 4 wins.
Kamaliia Alisheva avatar
Kamaliia Alisheva
1 year ago
I have learned all basic functions and Kotlin core. It was really exciting, but the exeptions...It is quite challenging for me, I need to learn more about them

4.5

Learners who completed this project within the Kotlin Developer course rated it as follows:
Usefulness
4.6
Fun
4.5
Clarity
4.5