Friday I received my first reading assignment. It was The Clean Coder. It wasn't a very long book, but I feel like it had a lot to say. Honestly, it was intimidating. The requirements laid out in the book for being a professional are very strict. Things like always taking responsibility for mistakes and time management don't seem too bad at first. When you add in how to say yes or no, how to estimate a project's time, and communicating clearly with other people it was all pretty heavy. I found myself agreeing with most of the requirements but I don't know how I could live up to all of them right now. I think that the book is best taken as a goal that you will never achieve. At least there's something to work towards.
On the Tic-Tac-Toe front, I've still been trying to get the game into a playable state. This means handling input, drawing the board, handling win/draw conditions, and then tying them all together. I've gotten the first two working and have already figured out how to check for a win/draw. I need to write the tests and then the code. I was a little stuck today because I was focusing on how to test the main game loop. The problem was that what terminates the game loop is a game over condition and I didn't have anything that would generate that. So after some trial and error, I changed course and began checking win/draw. I am happy because I figured out a way to check all the necessary combinations for a win with a formula. That way it works if I want to play on a 4x4 board. No such luck in 3d, but that's ok. I'd be worried if it somehow worked.
No comments:
Post a Comment