Skip to content

A statless engine for the game of TETRIS created in Clojure applying functional programming patterns

License

Notifications You must be signed in to change notification settings

obsidian-innovations/tetris-clojure-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A Clojure based engine for the game of TETRIS.

Console UI for the game engine

Simple text-based UI is included as well.

Objectives

This project is a result of the Clojure language teaching process.

How to run

In order to start the application you'll need to have Leiningen installed.

Run the following command in console:

lein run

Control keys

  • Esc - quit game
  • Up - rotate counter-clockwise
  • Down - rotate clockwise
  • Left - move left
  • Right - move right
  • Enter - speed up

Things to remember

Remember, that playing Tetris

  • Even reasonable 30 minutes per day for three months increases cerebral cortex thickness and improves general cognitive functions defined as "critical thinking, reasoning, language and processing".

  • Could positively influence people trying to diet, quit alcohol abuse or smoking as per research by the Plymouth University's Cognition Institute.

  • Can potentially reduce flashbacks for the people suffering posttraumatic stress disorder.

As identified in the "Effect of Tetris on the brain" by Wikipedia.

License

Copyright (c) 2015 Obsidian Innovations, Ltd

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A statless engine for the game of TETRIS created in Clojure applying functional programming patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published