Sunday, 30 October 2011

Booleans

I already knew about booleans and didn't learn much. I did, however, get a lot of enjoyment out of a separate project during class involving pseudo-gravity in two dimensions. This weekend I rewrote the program and made a console for it. That is, I wrote a small text editor and had it separate the first word and any numbers after it. Using this, I made a series of commands to change things such as the number of bodies in this pseudo-gravity, their range of size, their pull, etc. It's very fun to mess around with though it's very finicky and I'm having a weird problem with the text flickering. In order to change a string to an integer/double I used toCharArray and converted the characters from there. It's very easy to add a command and overall I'm happy with out flexible this project ended up being.

No comments:

Post a Comment