Skip to content

This repository contains a Tetris game implemented using the SLY (Scanning, Parsing, and Translation in Python) library. The goal is to create/simulate our language and use SLY to parse and interpret user inputs, allowing users to play the game and interact with it through our language.

Notifications You must be signed in to change notification settings

captnofdead/Tetris_game

Repository files navigation

Tetris

Tetris Game Language.

The language is called 'CCLang'. Snippet of CClang is shown below. User can set the values as per his/her choice in the cclang_script.txt file.

BOARD : 10 10
CONTROLS : horizon = 0, set_speed = 7
PIECE: @j, @z = "0110011011111111"
ACTION: myfunc()
FUNCTION: def myfunc(){ set_speed = 9 return }

To Run

Pre-requisites:

Python 3.6+
sly

Run

Run the makefile that will compile all the files and execute the game with the following command, NOTE: Your code should be in cclang_script.txt to compile successfully.

$ make

Links

linkedin

About

This repository contains a Tetris game implemented using the SLY (Scanning, Parsing, and Translation in Python) library. The goal is to create/simulate our language and use SLY to parse and interpret user inputs, allowing users to play the game and interact with it through our language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages