Repository for learning Kotlin w/ JetBrains Academy Connect Four Project.
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.
Connect Four
First player's name:
Vladas
Second player's name:
Bot
Set the board dimensions (Rows x Columns)
Press Enter for default (6 x 7)
5x5
Do you want to play single or multiple games?
For a single game, input 1 or press Enter
Input a number of games:
Vladas VS Bot
5 X 5 board
Single game
1 2 3 4 5
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
╚═╩═╩═╩═╩═╝
Vladas's turn:
1
1 2 3 4 5
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║o║ ║ ║ ║ ║
╚═╩═╩═╩═╩═╝
Bot's turn:
2
1 2 3 4 5
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║ ║ ║ ║ ║ ║
║o║*║ ║ ║ ║
╚═╩═╩═╩═╩═╝
Vladas's turn:
...