https://github.com/samccone/clojure-snake
a snake clone written in clojure
https://github.com/samccone/clojure-snake
Last synced: over 1 year ago
JSON representation
a snake clone written in clojure
- Host: GitHub
- URL: https://github.com/samccone/clojure-snake
- Owner: samccone
- License: epl-1.0
- Created: 2015-07-20T21:00:54.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-30T17:07:54.000Z (almost 11 years ago)
- Last Synced: 2025-01-28T10:49:03.217Z (over 1 year ago)
- Language: Clojure
- Homepage:
- Size: 342 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clojure-snake
clojure snake a work in progress

### Todo
* [x] Prevent moving ontop of self
* [x] When the snake moves out of the window bounds, the snake should wrap around
* [x] Add apples that you can eat
* [x] When you eat an apple grow the snake
* [x] When you eat an apple lay down another apple
* [x] Slowly increase speed
* [x] 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)