Project
Connect Four
Medium
908 completions
~ 17 hours
4.5This 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
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
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:
Make first steps in game development — your game should read input data and work with strings from the console.
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
1 year ago
I have learned that I need to think about the extensibility of the code first before writing it.
4.5
Learners who completed this project within the Kotlin Developer course rated it as follows: