bennythebear![]() Member Posts: 1225 From: kentucky,usa Registered: 12-13-2003 |
i've gotten some source code from archangel for a tic tac toe game and i don't even know how to view it, so you could see why i say newb help. i need to know to get the ide/compiler for windows, and i should be able to figure out where to go from there. i need to look at the source code he gave me to see how the ai was implemented, i'm planning on working on version 2.0 of my button based tic tac toe game. any help and links would be greatly appreciated! ------------------ proverbs 25:7 www.gfa.org - Gospel for Asia www.persecution.com - Voice of the Martyrs |
samw3![]() Member Posts: 542 From: Toccoa, GA, USA Registered: 08-15-2006 |
imho the best java ide is eclipse and the easiest installation of it is www.easyeclipse.org. Once installed and inside, create a new project and choose "Create project from existing source" That should let you see the code. ------------------ |
Xian_Lee![]() Member Posts: 345 From: Registered: 03-15-2006 |
I've been working with Java for a while, and I've heard great things about Eclipse, but I haven't really messed with it. (I usually just use a command-line editor like Vi and compile directly with javac.) Anyway, I'm downloading an EasyEclipse distro now (they had one for the mac, isn't that nice of them?). Benny, I would say that Sam's got you covered here. Get EasyEclipse and go from there. Best of luck! ------------------ |
ArchAngel Member Posts: 3450 From: SV, CA, USA Registered: 01-29-2002 |
I used eclipse to code it, too. for Java, Eclipse is my fav IDE. I gave you the .java files, right? they [u]should[/u] be able to be viewed in anything, like a wordpad or stuff (or yes.. in VI) if I sent you the .class files, I'm sry. ------------------ |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
eclipse is a decent IDE i use Oracle's JDeveloper or JCreator these days (JCreator is written in C so it's not a memory hog |
SSquared![]() Member Posts: 654 From: Pacific Northwest Registered: 03-22-2005 |
I use Eclipse too, but yes...it seems like a big memory hog. But I really enjoy the features and find it great for Java development. |
bennythebear![]() Member Posts: 1225 From: kentucky,usa Registered: 12-13-2003 |
thanks for the link/help guys. @arch: you sent me a zip file contain ".java" and ".class" files. this source code should really help me, i'm having a hard time figuring out exactly how to implement the ai. thanks. ------------------ proverbs 25:7 www.gfa.org - Gospel for Asia www.persecution.com - Voice of the Martyrs |
ArchAngel Member Posts: 3450 From: SV, CA, USA Registered: 01-29-2002 |
yeah, forget the .class files. anyhow, there should a pdf in there explaining Game Theory. basically, your creating a tree where each leaf is a possible ending and the value of each branch node is the best possible win considering the leafs below it. so the computer always chooses it's strongest move and likewise, it evaluates what a human would do also. ------------------ |
spade89![]() Member Posts: 561 From: houston,tx Registered: 11-28-2006 |
hey i've installed eclipse,netbeans5.0,netbeans5.5 and they all are really slow(in my pc), the ones i like are gel and jipe they don't have visual editors. how do you run the .class files?? it says main class not found or something like that. ------------------ Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me. |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
Those IDEs are all Java-based, which means when you run them they have a JVM running and are therefore memory hogs (and slow). I suggest JCreator for beginners as it's fast and only provides basic tools (no debugging). As for running the files, if you have a classpath set up then you'd do: java MyClass the IDEs should have their own controls to run the files though ------------------ |
ArchAngel Member Posts: 3450 From: SV, CA, USA Registered: 01-29-2002 |
Eclipse will run it right from the IDE. ------------------ |
spade89![]() Member Posts: 561 From: houston,tx Registered: 11-28-2006 |
i run the class files either using the ide or using the ide to package them into a .jar file. btw---gel is a native(non-java) ide. i downloaded the JDeveloper and i like it specially the visual editor it is still kinda slow but better than eclipse and netbeans,but JCreator doesn't have a visual editor,it's kinda hard to do swing coding without a visual editor and the other alternative is either awt or console. ------------------ Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me. |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
Yeah, i don't suggest using JCreator for that. i just like to have more control over my code and projects. And it's create for starting up and maintaining lots of smaller projects, not to mention the easy customization ![]() but yeah, JDev has very nice gui stuff, even if it IS crazy-slow. ------------------ |
spade89![]() Member Posts: 561 From: houston,tx Registered: 11-28-2006 |
have you tried netbeans5.5 man if you wanna see slow see that it takes more or less an hour to get started(it takes real long when it scans class paths). but i have a 128mb ram and a slow processor. ------------------ Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me. |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
oh i've tried NetBeans... if you think the IDE is slow, try ordering their free CD , lol. NB is pretty powerful though, they give you a lot of tools as well. Also, if you're working with JEE then it's great ------------------ |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
Wow Spade! i just checked out Gel. I've heard of it before but i never followed up on it. It LOOKS (i'm about to install it) like a minimalist IDE like JCreator but with extra functionality via plug-ins, etc. I think i've tried about every java IDE except this and BlueJ and JDEV (for its GUI editor, etc) and JCreator (for its simplicity) are my favorites. Anyways, i'll give you my opinion on it when i play with it. ughhhh, i just got settled with JCreator too ![]() UPDATE: So i've tried it and set it up. It crashed a few times trying to set up plugins as it hates using Java 6 as the embedded JRE. Visually it seems VERY similar to JCreator and it allows built in Ant and JUnit. The memory usage is quite a bit greater then JCreator (about 4x greater) and it doesn't allow Workspaces (to my knowledge). [This message has been edited by jestermax (edited March 27, 2007).] |
spade89![]() Member Posts: 561 From: houston,tx Registered: 11-28-2006 |
yeah man JDev is real cool i think it's kind of my favorite now. but i'd prefer gel over JCreator. gel is cool once you get use to it. about netbeans i have their free cd and i kinda like it i tried to use one of their example midlet apps in my motorolla v360 cell phone but it didn't work but it's really slow maybe if i get myself a 1 gig ram it can be fun but i really really like the visual editor of netbeans if only the made it a native ide rather than a java one,when it comes to ide's native ones are as far as i have seen more powerful than java based ones. ------------------ Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me. |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
Eclipse and JEdit are VERY powerful tools, but yeah, being written in java makes them weak, unless you're using them in a non-windows OS. Gel IS awesome and it's very similar to JCreator but i just like having workspaces and projects with very low overhead and low memory usage. For example: when i'm running tests with GTGE or Jirr, i make a "GTGE Workspace" and then i can have multiple projects/tests/examples running under it. so it's just easier to move code and components around. ------------------ |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
Ok, so heres an update on Java IDES and me....i hate Gel. i went to start up a new gaming project and it crashed several times. when i actually got the project set up, it wouldn't compile and refused to leave my project settings alone (auto filled all my settings). i'm sticking with JCreator for the time being. ------------------ |
spade89![]() Member Posts: 561 From: houston,tx Registered: 11-28-2006 |
hehe i know what you mean. hey is making ide's that hard,wouldn't it be nice if there was such thing as a Christian ide. ------------------ Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me. |
jestermax![]() Member Posts: 1064 From: Ontario, Canada Registered: 06-21-2006 |
That would be: A) Smokin' hot ![]() B) An EXTREME amount of work C) A little redundant; it's kind of like how some companies make a knockoff of another product just to add a label. we COULD however, get the source for one of them and add a nice Splash screen ![]() ------------------ |