Skip to content

samccone/clojure-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure-snake

clojure snake a work in progress

screen shot 2015-07-24 at 5 24 00 pm

Todo

  • Prevent moving ontop of self
  • When the snake moves out of the window bounds, the snake should wrap around
  • Add apples that you can eat
  • When you eat an apple grow the snake
  • When you eat an apple lay down another apple
  • Slowly increase speed
  • End the game when the snake runs into itself
  • Add score to title bar ... score = (.2 * time-alive * apples eaten)
  • Allow a user to restart the game
  • Apples should not be placed on top of other apples or on top of the snake
  • Add a start screen
  • Add an autoplay mode
  • Add an optional computer AI mode
  • Add a difficulity slider (1 - 10) determines growth and speed
  • Use left and right arrows to steer snake in continuous angles

Dev

$ lein repl
$ (require 'clojure-snake.core)
$ (clojure-snake.core/game)

When you make a file change run to reload

$ (require 'clojure-snake.core :reload-all)

About

a snake clone written in clojure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published