Freitag, 27. Juni 2014

Donnerstag, 19. Juni 2014

Tamagotchi example in Clojure

A basic example of a command-line Tamagotchi game, in Clojure!

Completely functional - doesn't mantain any state (besides the "state" in the functions itself, of course).

Start:
Lein run
This is how it looks:
create <name> ::: creates a new tamagotchi
show ::: shows tamagotchi
feed ::: feeds tamagotchi
quit ::: exit
create Max
Tamagotchi Max created!
show
Max has 10 health points. Last feed time: 19.06.2014 11:51:28, You have 17 seconds to feed it before health is reduced.
show
Max has 10 health points. Last feed time: 19.06.2014 11:51:28, You have 9 seconds to feed it before health is reduced.
feed
Feed!, updated health: 12
show
Max has 12 health points. Last feed time: 19.06.2014 11:51:42, You have 15 seconds to feed it before health is reduced.

Project url: https://github.com/i-schuetz/tamagotchi_clojure/blob/master/README.md

Sonntag, 1. Juni 2014

Clojure shop project

I created Clojure shop, an open source project, with basic functionality of an online shop:

- Product list
- Authentication
- Cart
- User account
- Payment
- Image resolutions management
- md5

For the full description, please check the Github repository.

I also wrote an open source client application for iOS.


Hope this is useful, it's a learning project, everything working so far, a good start if you're interested in developing online shop / mobile REST api with Clojure. Also, contributions welcome!


*I Had to create a Clojure only blog to add a feed to Planet Clojure: http://clojurestuff.blogspot.de/
For now duplicating the entries...