This morning I played around with the end-game solution for Shut the Box. Part of the issue I had was the way I determined the end game in other languages was iterative. It would iterate through the list of tiles, subtract the current tile it was using, and then recurse …
read moreDay 27/100: Buggy end-game
Getting closer to calling this version of "Shut the Box" done. There are still a few bugs that I'm running into that I hope to resolve tomorrow.
One of the things that is a little annoying to me about scheme is the absence of a "return" statement. Several bugs that …
read moreDay 26/100: Working more on slides
Worked more on my slides for the upcoming MUG meeting. Also did a little more reading about Scheme in the process. Fun times.
read moreDay 25/100: Accepting Input
Today I made some strides in getting this to accept input. It's starting to look like a game now:
read more#lang racket #| Init Block |# (define tiles '()) (define die1 0) (define die2 0) (define turn-number 1) (define took-turn #f) (define end-of-game #f) (define (start-game) (set! tiles '(1 2 3 4 5 6 …
Day 24/100: Small Steps
Did a little bit more on my presentation, but nothing earth-shattering. Read some more of The Little Schemer and finally realized that the book is about taking small concepts to build bigger programs. Unfortunately it reads like some form of cult worksheet to brainwash someone into a new way of …
read more