Skip to content

CQCumbers/css_tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS Tetris

A CSS based QFTASM interpreter

CSS Tetris uses the space-toggler hack, a way of expressing logical ANDs and ORs using certain properties of CSS3 variables, to implement a limited version of the Quest for Tetris processor, and thus provide an extremely impractical way for someone with a great deal of patience to (theoretically) play Tetris in the browser. It also showcases a fundamental limitation to the Turing completeness of CSS - there is no way to automatically feed the outputs back into the inputs, so all state between cycles must be stored in HTML through human input, in this via lots of checkboxes and labels. Check it out at cqcumbers.com/css_tetris.

This project was inspired by CSS Sweeper, a minesweeper game written using the same tricks, but extends the concept further towards general computation, at the cost of practicality. It also owes a lot to the work of the Quest for Tetris team, who designed the processor and wrote the code that actually implements Tetris for it.

Timelapse (200x speed)

timelapse

About

A CSS based QFTASM interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages