Git Product home page Git Product logo

lilz's Introduction

lilz

lilz (pronounced "lil-zee") is a program that plays tetris. This was started as a programming exercise with the following goals:

  • utilize and manipulate an existing Java program
  • learn clojure
  • get familiar with basic artificial intelligence concepts

Installation

  1. Install Leiningen

  2. I used Per Cederberg's Java Tetris. I was unable to find a public repository for the .jar file so I use a local version. On Ubuntu, after installing Maven and downloading tetris.jar, the following command will satisfy Leiningen's tetris dependency:

    $ mvn install:install-file -DgroupId=net.percederberg -DartifactId=tetris -Dversion=1.2.0 -Dpackaging=jar -Dfile=/path/to/tetris.jar

  3. From the lilz/ directory:

    $ lein deps

Usage

The simple thing to do is created a standalone .jar file that includes all the dependencies. This takes a longer time to build but allows for simple execution:

$ lein uberjar
$ java -jar lilz-*-standalone.jar

This is great for creating a distributable file but for development I prefer to create a .jar which only contains the lilz project and then link to the dependent libraries:

$ lein jar
$ java -cp $CLOJURE_EXT/clojure.jar:/path/to/tetris.jar:./lilz-*.jar lilz.core

License

I don't know too much about licensing but Java Tetris is distributed under the GNU GPL. I hope I'm not violating anything by distributing this code under the same license.

lilz's People

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.