Skip to content

mpberk/pytris_tgm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytris_TGM

This is a python implementation of Tetris using the TGM ruleset.

TODO List

  • Package up code to be used with pip install
  • Add pygame display functionality
  • Compartmentalize pygame display functionality
  • Add support for OpenAI Gym interface
  • Complete README documentation
  • Add automated testing
  • Add seed for randomization
  • Make tetronimos into a class

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prequisites

Pytris requires at least Python 3.6 and these libraries:

pip install pygame

Installing

To install Pytris, clone the repository and call pip:

git clone https://github.com/mpberk/pytris_tgm.git
cd ./pytris_tgm
pip install -e .

Running

To run Pytris, call the following:

python ./pytris_tgm/pytris_tgm_display_pygame.py

Or call the following in a python script:

from pytris_tgm import PytrisTGMDisplay

pytris = PytrisTGMDisplay()
pytris.start()

Controls

To control Pytris, use the following controls:

  • Left Key
  • Right Key
  • Down Key
  • Z - A Rotate
  • X - B Rotate
  • C - C Rotate

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages