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 more
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 …
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 more
Page 1 / 460 »