Did a little more development with Scheme / Racket and Shut the Box. I fixed a few bugs in the previous implementation where you could remove tiles by flipping unflipped tiles before the flipped tiles are checked. I also put in a check so that the tiles that are flipped set …
read moreDay 21/100: Slow progress
More progress on the Shut the Box program in Racket.
Still need to figure out how to get everything together, but at least it's starting to make some sense.
read more#lang racket #| Init Block |# (define tiles '()) (define die1 0) (define die2 0) (define turn-number 1) (define (start-game) (set! tiles '(1 2 …
Day 20/100: Continued Shut the Box
Still working on the Shut the Box program in Scheme / Racket, and I'm getting stuck.
I know that mutable global values are bad (m'kay) but I'm not sure how to pass the values along in some meaningful way. Perhaps it's all of the years of object oriented programming shining through …
read moreDay 19/100: Reading...
Did some reading of "Secrets of the JavaScript Ninja" and played more with the Shut the Box code in Racket to try to sectionalize it off properly. Will post more code tomorrow when I have more to show.
read moreDay 18/100: Landing a UFO in Racket
Played more with Racket and the "Realm of Racket" book. The first example has you land a UFO at the bottom of the screen, so I modified that just a hair to land something else:
Kind of interesting that the DrRacket will allow you to enter images like this. Unfortunately …
read more