All Projects → LoveDaisy → Tetris_game

LoveDaisy / Tetris_game

Licence: mit
A Tetris Game with AI

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Labels

Projects that are alternatives of or similar to Tetris game

Leelasabaki
Leela (Zero) integration with Sabaki.
Stars: ✭ 138 (-77%)
Mutual labels:  ai, game
Opensteer
OpenSteer is a C++ library to help build steering behaviors for autonomous characters in games and animation.
Stars: ✭ 202 (-66.33%)
Mutual labels:  ai, game
Classic Pool Game
Classic 8 Ball pool game written in JavaScript
Stars: ✭ 177 (-70.5%)
Mutual labels:  ai, game
Bwapi
Brood War API
Stars: ✭ 1,482 (+147%)
Mutual labels:  ai, game
Movement Tracking
UP - DOWN - LEFT - RIGHT movement tracking.
Stars: ✭ 379 (-36.83%)
Mutual labels:  ai, game
Owl Bt
owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a way, that it supports special node items like decorators and services. This makes trees smaller and much more readable.
Stars: ✭ 112 (-81.33%)
Mutual labels:  ai, game
Clashjs
Javascript AI battle game. Create your own battleship.
Stars: ✭ 196 (-67.33%)
Mutual labels:  ai, game
Korea Startups
🌟 국내 스타트업 목록 및 설명 🌟
Stars: ✭ 63 (-89.5%)
Mutual labels:  ai, game
Codegame
🎮 JavaScript AI tank game
Stars: ✭ 323 (-46.17%)
Mutual labels:  ai, game
Overmind
AI for Screeps, a multiplayer programming strategy game
Stars: ✭ 320 (-46.67%)
Mutual labels:  ai, game
Warriorjs
🏰 An exciting game of programming and Artificial Intelligence
Stars: ✭ 8,673 (+1345.5%)
Mutual labels:  ai, game
Aigames
use AI to play some games.
Stars: ✭ 422 (-29.67%)
Mutual labels:  ai, game
Mage
Magic Another Game Engine
Stars: ✭ 1,180 (+96.67%)
Mutual labels:  ai, game
Snake Ai Reinforcement
AI for Snake game trained from pixels using Deep Reinforcement Learning (DQN).
Stars: ✭ 123 (-79.5%)
Mutual labels:  ai, game
09 Zombierunner Original
First person shooter with Unity terrain and AI pathfinding (http://gdev.tv/cudgithub)
Stars: ✭ 64 (-89.33%)
Mutual labels:  ai, game
Htframework
Unity HTFramework, a rapid development framework of client to the unity.
Stars: ✭ 179 (-70.17%)
Mutual labels:  ai, game
Rlcard
Reinforcement Learning / AI Bots in Card (Poker) Games - Blackjack, Leduc, Texas, DouDizhu, Mahjong, UNO.
Stars: ✭ 980 (+63.33%)
Mutual labels:  ai, game
Tic Tac Toe
An unbeatable game of Tic Tac Toe.
Stars: ✭ 57 (-90.5%)
Mutual labels:  ai, game
Aitrack
6DoF Head tracking software
Stars: ✭ 262 (-56.33%)
Mutual labels:  ai, game
Screeps
Artificial intelligence for screeps
Stars: ✭ 407 (-32.17%)
Mutual labels:  ai, game

Tetris Game

It is a python implementatino of Tetris Game, and a simple AI to play game automatically.

Need python3, PyQt5 and NumPy to be installed.

  • tetris_game.py is the main application.
  • tetris_model.py is the data model for this game.
  • tetris_ai.py is the AI part.

Run tetris_game.py from command line and you start to play or watch the AI playing.

$ python3 tetris_game.py

Play manually

If you want play by yourself, you should uncomment this line in tetris_game.py:

# TETRIS_AI = None

Or just comment this line:

from tetris_ai import TETRIS_AI

Current config could be too fast for human player. So you may want make it slower, by changing value of Tetris.speed defined here:

class Tetris(QMainWindow):
    ...
    def initUI(self):
        ...
        self.speed = 10

Play rules

Just like classical Tetris Game. You use up key to rotate a shape, left key to move left and right key to move right. Also you can use space key to drop down current shape immediately. If you want a pause, just press P key. The right panel shows the next shape.

~ HAVE FUN ~

Screenshot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].