« GRITZ Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next

America's Favorite Pastime 

By: De_Composed in GRITZ | Recommend this post (2)
Sun, 10 Aug 25 3:12 AM | 35 view(s)
Boardmark this board | Grits Breakfast of Champeens!
Msg. 11509 of 11941
Jump:
Jump to board:
Jump to msg. #

I just hit my '20 Grok Questions in 2 Hours' limit so I thought I'd take a break and share what I'm up to.

I've been writing a decent amount of pascal, sometimes pulling off things I never knew how to do (and often still don't) and always doing it a lot faster than I normally could. AI has some serious drawbacks, but for what I'm doing, it's wonderful.

The screen to the right is from "RotatingOctagon" - a program I started about 4 hours ago and which is about 300 lines long. That's misleading, though, since I didn't hand all the specs over to Grok and say "write this," but instead gave it a bit at a time and often caused the poor creature to rewrite the whole thing from ground up. The actual line count if you include all the throwaways is probably closer to 3,000.

I know nothing about Computer Graphics and thought this might therefore be an interesting way to kill an afternoon. To what extent can Grok augment my limited knowledge in this field of programming? With its help, I'm now able to draw an octagon that rotates either way at a speed I control via slidebar. A ball obeys the law of gravity and the force of friction, bouncing around within. A slidebar controls how strong the gravity is. A third slidebar controls the size of the ball. Radio buttons set the ball's color.

There are some bugs: The slidebars aren't labeled and I'm not sure why. The ball bounces based on contact with its CENTER, not its exterior. That's pretty goofy. And the gravity slidebar might not be working, or it could be working fine but my poor laptop is pushed to its limit and just can't go any faster.

Finally, there's a bug where the program continues to run in background when its window has been closed. Whoops! That's a pretty serious problem... one that could bring my computer to a halt if I don't kill the runaway processes by hand.

That's about it. If I can get my program debugged and working perfectly, I'll ask Grok to help me with just ONE more little thing.... Who hasn't wondered what Hillary's head would look like bouncing around in a giant octagon???









- - - - -
View Replies (2) »



» You can also:
« GRITZ Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next