Skip to content

coldnew/snake.cljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake.cljs

Circle CI GitHub license

A simple snake game implement in ClojureScript for tutorial.

Implementation

Tutorials

Screenshot

Screenshot

Development

  1. Install boot-clj for handle this project

  2. Goto the implementation you want to play with

  3. Start the dev task. In a terminal run:

    $ boot dev

    This will give you a development setup with:

    • auto compilation on file changes
    • audible warning for compilation success or failures
    • auto reload the html page on changes
    • Clojurescript REPL
  4. Go to http://localhost:3000 in your browser.

  5. If you edit and save a file, the task will recompile the code and reload the browser to show the updated version.

  6. If you want to connect to ClojureScript REPL, enter following in Clojure REPL:

    (start-repl)

Production

  1. Run the prod task. In a terminal run:

    $ boot prod
  2. The compiled files will be on the target/ directory. This will use advanced compilation and prerender the html.

License

Copyright © 2017 Yen-Chin, Lee <coldnew.tw@gmail.com>

Distributed under the MIT License.

Releases

No releases published

Packages

No packages published