Page 320 of 534
Re: Official SGT ADD thread
Posted: Wed Apr 08, 2009 1:22 pm
by Lasolimu
BRWombat wrote:Well done, Lasolimu. I've played Go before -- though not with the level of fanaticism it takes to get really good at the strategy, so anyone can beat me easily -- and the interface seems to handle the gameplay perfectly. If you have a little more effort left in you, you might consider adding an indicator to show whether it is Black or White's turn.
And if you have a LOT of energy left, just program gameplay strategy into it and create a Master-level computer opponent!! (Okay, ignore this -- it's just the computer-science-major side of me coming out.)
I had considered doing all of that, but as the code freeze is on Friday the only thing not thrown out yet is the indicator. I have found that it would be nice at times in my testing. Plus it is a quick add considering the control panel still has an empty space on it.
Re: Official SGT ADD thread
Posted: Wed Apr 08, 2009 3:30 pm
by kurtisnelson
BRWombat wrote:And if you have a LOT of energy left, just program gameplay strategy into it and create a Master-level computer opponent!! (Okay, ignore this -- it's just the computer-science-major side of me coming out.)
How many of us here are comp sci people?
Re: Official SGT ADD thread
Posted: Wed Apr 08, 2009 3:58 pm
by Lasolimu
kurtisnelson wrote:How many of us here are comp sci people?
Does someone need to start a poll?
Re: Official SGT ADD thread
Posted: Wed Apr 08, 2009 7:57 pm
by Lasolimu
BRWombat wrote:you might consider adding an indicator to show whether it is Black or White's turn.
I have now put this in, and uploaded it to my website so take a look.
Re: Official SGT ADD thread
Posted: Thu Apr 09, 2009 11:27 am
by BRWombat
Lasolimu wrote:I have now put this in, and uploaded it to my website so take a look.
Looks good!
Re: Official SGT ADD thread
Posted: Thu Apr 09, 2009 12:29 pm
by Lasolimu
BRWombat wrote:Looks good!
It still has a problem, there is a potential memory leak I need to fix, I have a solution, but I am sure there is a better way to do it so, I am doing some research into it. If I haven't found a better solution I will implement the one I have tonight.
Yes, I created a potential memory leak in Java, don't ask me how.
Re: Official SGT ADD thread
Posted: Thu Apr 09, 2009 12:51 pm
by ktulu
No go on my mac.
Re: Official SGT ADD thread
Posted: Thu Apr 09, 2009 5:04 pm
by Lasolimu
ktulu wrote:No go on my mac.
Could be your version of Java because I didn't put in anything that was platform specific, unless it was added when I put it into the jar.
Re: Official SGT ADD thread
Posted: Thu Apr 09, 2009 6:52 pm
by Lasolimu
Okay, I fixed the leak. I had to use the messy method. I had it just about working but it kept failing for some reason. That reason was that I had windowClosing() instead of windowClosed().
Re: Official SGT ADD thread
Posted: Thu Apr 09, 2009 7:42 pm
by hobie16
Lasolimu wrote:Could be your version of Java because I didn't put in anything that was platform specific, unless it was added when I put it into the jar.
Click on the apple in the upper left corner and select Software Update... That'll tell you if you've got the latest version of Java.