Commit Graph

1273 Commits

Author SHA1 Message Date
Dan Buch 5bf03a1a40 Cleaning up rolls implementation
to be a bit more idiomatic, I suppose.
2012-12-20 08:36:35 -05:00
Dan Buch e81b35471e Fixing a few places where I was using "crypto/rand"
to use "math/rand" with a proper seeding instead.
2012-12-20 00:34:24 -05:00
Dan Buch 7a40632ca8 Implementing "Average" example
and supporting `Stdin.ReadDouble` method.
2012-12-19 23:23:35 -05:00
Dan Buch e0101b4c69 Not using that GOROOT after all 2012-12-19 23:22:36 -05:00
Dan Buch 9a1c045581 Implementing the "RandomSeq" example
with supporting implementation of `StdRandom.uniform`
2012-12-19 22:58:37 -05:00
Dan Buch 6ebbf04980 Re-namespacing one more time to get sources back in the same tree.
I dunno...  this whole thing should be its own repo, probably.  Meh.
2012-12-19 22:33:46 -05:00
Dan Buch 76c392967d Re-namespacing everything and fixing imports to match 2012-12-19 21:10:56 -05:00
Dan Buch 335fe2e9bd Adding a shell script variant of web assets generator
mostly just for silly comparison, as a shell scripting exercise I guess.
2012-12-19 18:36:50 -05:00
Dan Buch 18efe35c95 Yup, I think I prefer left-aligned. 2012-12-19 00:25:43 -05:00
Dan Buch 142c802a70 Giving image representation a top and left border
plus some other minor visual cleanups to web game.
2012-12-19 00:23:22 -05:00
Dan Buch 45c45bb838 Wrapping base64-encoded files at 76 chars
like it should be!
2012-12-19 00:06:15 -05:00
meatballhat 72b269650b Simplifying web game loop 2012-12-18 22:03:26 -05:00
meatballhat f86855d22d Externalizing web assets
mostly to ease editing, but also for practice with file manipulation,
gzipping, base64'ing, etc.
2012-12-18 21:56:37 -05:00
meatballhat 4c44252a49 Getting the web implementation mostly working! 2012-12-18 09:37:28 -05:00
Dan Buch 6818d0ee01 Serving random state images, now need to tackle state transfer 2012-12-17 09:17:01 -05:00
Dan Buch 8b536de45c Playing around with images and drawing
mostly in preparation for doing image stuff in the Conway's Game of Life
implementation.
2012-12-16 19:58:01 -05:00
Dan Buch 3e013ce1a5 Too much crap for one commit
Breaking out console runner into its own file, adding an empty web
runner, and starting to test that games and game states are able to
represent themselves as images.
2012-12-16 17:59:54 -05:00
Dan Buch 3bfa23fff2 Have we achieved torus? 2012-12-16 16:04:54 -05:00
Dan Buch 8056d86cbf A bunch more work towards achieving torus 2012-12-16 12:17:44 -05:00
Dan Buch 7567f1c991 Starting work on making the game exist on a torus 2012-12-16 09:56:38 -05:00
Dan Buch fc3f94e78f Goofing around with Qt a bit 2012-12-14 20:35:01 -05:00
Dan Buch 39fdd6fdd6 Reflection thing from Jesse :-) 2012-12-13 21:02:19 -05:00
Dan Buch 44999623da Collapsing tree into more sane Go project layout
since I was in here looking at something unrelated...
2012-12-13 18:12:43 -05:00
Dan Buch 270eb1fc2d Moving bulk of console runner into library func 2012-12-12 21:34:28 -05:00
Dan Buch 6bbe19c26f Whoops, was double-eval'ing generations 2012-12-12 08:11:33 -05:00
meatballhat 353b59b303 Extracting and testing generation emit and checksumming bits 2012-12-11 23:35:49 -05:00
meatballhat c0184dd9df Splitting things up a bit 2012-12-11 22:50:47 -05:00
meatballhat 8ba87ccc81 Cells can have their values set when ranging over them
plus more replacement of y, x loops with cell ranges, adding static
neighbor coords.
2012-12-11 22:30:34 -05:00
meatballhat 078efbe057 Refactoring tests a bit 2012-12-11 21:04:47 -05:00
meatballhat 0ac0b4cab9 Cleaning better and using chars with more contrast. 2012-12-11 18:43:15 -05:00
meatballhat df55a809f1 Attempting to collapse package up a level
since I'm not feeling like I'm going to tackle this in another
language... yet.
2012-12-11 18:28:10 -05:00
Dan Buch f22abc0430 Detecting 3-period oscillators
and properly (?) checking for zero-oscillator stasis.
2012-12-10 09:39:58 -05:00
Dan Buch 78625088e8 Detecting statis with blinkers or beacons or some other 2-period oscillator 2012-12-10 09:14:29 -05:00
Dan Buch 8ff1125452 Even better, I guess 2012-12-10 00:55:39 -05:00
Dan Buch 3ff6e2e999 Ending game automatically when statis is reached
plus properly seeding math/rand and swapping the chars used for grid to
better match black/white from canonical example.
2012-12-10 00:35:09 -05:00
Dan Buch ad1bd2537a Introducing concept of mutation
which appears to delay the onset of stasis until about twice as many
generations (???)
2012-12-10 00:22:31 -05:00
Dan Buch ea5bb19b0b Flagging up the command-line interface
and using unicode chars instead of X and _, dangit!
2012-12-09 23:38:38 -05:00
Dan Buch 00b750e2b0 Plugging stuff into command-line runner
including adding random initial state generation.
2012-12-09 23:20:43 -05:00
Dan Buch 32095ef057 Ensuring the game can display itself
albeit in very simple string form.
2012-12-09 22:51:10 -05:00
Dan Buch ffb8d1e43c Implementing dead cell reproduction 2012-12-09 22:33:42 -05:00
Dan Buch c2ffaee979 Implementing overcrowding rule 2012-12-09 22:16:16 -05:00
Dan Buch aaba7c22df Getting two of the four rules (sorta) working
with some gnarly and probably way too big scoring code.
2012-12-09 21:05:40 -05:00
Dan Buch f6546e7186 More tests, including finally getting into implementation of real reqs 2012-12-09 00:22:10 -05:00
Dan Buch 8a858a9a11 Filling in a few more tests 2012-12-08 23:08:40 -05:00
Dan Buch f1ab95c68f (finally!) doing some TDD in Go 2012-12-08 22:44:45 -05:00
Dan Buch ecffff2a60 Starting work on a Go implementation of Conway's Game of Life
since I had a decent amount of practice at
http://globalday.coderetreat.org/
2012-12-08 21:47:21 -05:00
Dan Buch 6bd27f93b8 picking up the android thing again 2012-12-08 07:57:46 -05:00
Dan Buch 5228eba27e Using the more explicit Java symbol access pattern 2012-12-02 20:28:07 -05:00
Dan Buch e1a07fadd9 Working through an old @why post on metaprogramming
since I'd like to make the JRuby rabbitmq stuff a bit less boilerplate.
2012-12-02 20:21:14 -05:00
Dan Buch 9fd03cab2f Implementing rpc example in Go 2012-12-02 08:41:05 -05:00