This is the simple tetris game with built-in AI agent to play it automatically
- Clone the repository:
git clone https://github.com/KonstBeliakov/KorGe_Tetris.git
- Build a project
./gradlew build
- Run
./gradlew runJvm
- Have fun :)
Bot achieved 12800 points :)
I'm trying to play tetris: https://youtu.be/xi-YsKHrKGc
←
- move tetramino to the left→
- move tetramino to the rightR
- rotate tetramino↓
- instantly drop tetramino to the bottom of the boardO
- make a move automatically (AI will instantly rotate, move and drop one tetramino)N
- start a new game (if you finished the previous one)
- For some reason I can't make those imports to work:
import com.soywiz.korge.view.*
import com.soywiz.korge.input.*
import com.soywiz.korge.scene.*
import com.soywiz.korge.game.GameWindow
import com.soywiz.korge.time.*
import com.soywiz.korge.input.Key
import com.soywiz.korio.async.*
and ChatGpt didn't want to write code examples without them :(
- My AI agent could not move pieces to the left (only to the right). I thought that this would not be critical, because the figures initially appear in the upper left corner, but it turns out that this is not enough): Because of this, the first column was empty most of the time and the bot lost