Skip to content

Show off the power of Datomic with the help of adorable little battling anime kewpie dolls.

License

Notifications You must be signed in to change notification settings

mgaare/pokemans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pokemans

A few fun examples of how Datomic works, using the delightful and completely-made-up-without-infringing-on-valuable-copyrights world of pokemans.

Used in a fun introductory session at Ladders.

Usage

Schema and initial data are in the resources folder.

Start up a repl, switch to the dev namespace, and run (restart) to load up an in-memory Datomic database with the schema and data. The conn var will contain the resulting Datomic connection.

Randomly generate some pokemans with (generate-pokemans conn n) where n is the number of pokemans you want to generate.

Have each traineur catch some pokemans with (everyone-capture-n-pokemans conn n) which will have each traineur randomly catch n pokemans until everyone catches n or they've caught them all.

There are a couple other nifty things in the dev namespace that you can play with, including some commented-out steps for setting up a test for duplicates.

License

Copyright © 2016 Michael Gaare

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Show off the power of Datomic with the help of adorable little battling anime kewpie dolls.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published