It took me a long time, but I finished the Forth interpreter subset. I had to refactor a bit. All of the math and stack operations got turned into functions called from a prepopulated symbol table. Otherwise several of the[…]↓ Read the rest of this entry…
Posts Tagged #100DaysOfCode
No 2048 today. Instead I started a second exercise. The first was Dominoes. In that one you check and see if a pile of dominoes can be set end to end in a ring of matching counts. It was hard[…]↓ Read the rest of this entry…
Today’s exercise was Tournament. It wasn’t so much hard as it was fussy. The memory stream and formatting stuff I had to look up and still didn’t like very much. I eventually did a second iteration with formatting and stream[…]↓ Read the rest of this entry…
Today’s exercise was Spiral Matrix you start at 0,0 and go around and around plotting numbers until you reach the center turning when you get to a plotted number or edge (I just shrunk the range you can move through[…]↓ Read the rest of this entry…
Today’s exercise is Matching Brackets. Checks if the curly brackets, braces, and parenthesis are balanced and in the correct order for a given string. Pretty chill. On the 2048 game, you can now win, lose, and pause. I put in[…]↓ Read the rest of this entry…
I think Bob is exercism‘s quintessential exercise. That was the one that I did today. Making sure that yelling mode included letters tripped me up for a bit but I got it. I went over time allocated, but I translated[…]↓ Read the rest of this entry…
Sometimes an exercise is hard because it is difficult. Other times, like for today’s exercise, Clock. It is hard because you didn’t specify the problem completely. You specified that I needed to implement IEquatable. However it did not tell me[…]↓ Read the rest of this entry…
Circular Buffer was today’s C# exercise. It was a fairly tricky one. I wanted to watch for the pointers to overlap which doesn’t really work when capacity is one. Instead I switched to a counter that keeps track of how[…]↓ Read the rest of this entry…
Today’s exercise was Rotational Cipher sometimes known as the Caeser Cipher. While yesterday was LINQ to the rescue, looking at the community solutions I think it was LINQ functions to obfuscate. I could maybe see making a single function to[…]↓ Read the rest of this entry…
LINQ to the rescue. For the exercise Grade School LINQ makes the code shorter and more readable (in my opinion). Last night I did a couple more chapters in the book. I feel like I should have been done by[…]↓ Read the rest of this entry…








