Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old June 4th, 2004, 07:32 PM
Psyn0c Psyn0c is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cape Town, South Africa
Posts: 16 Psyn0c User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Psyn0c
[appleeaters]Java Animation 4u!

Hi guys,

I have created a Java program that animates the robots' movements. Now you can see exactly how your robot behaves. Text messages and before-and-after motionless images are just not enough to identify all those special cases.

All that you have to do is modify your PHP script. I have provided a Java version of appleeater.php as an example.

Here's a screenshot of the program:
http://www.psynoc.za.net/robots/robots.png

For more details, and to download the full source code and compiled class files, go to this webpage:
http://www.psynoc.za.net/robots

Cheers.

Reply With Quote
  #2  
Old June 5th, 2004, 03:01 PM
DDY DDY is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rouen, 76, FRANCE
Posts: 25 DDY User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[appleeaters]RE: Java Animation 4u!

thx !

but why not realeasing a playable version ?
I mean just 10 buttons for calling the move() method with the right argument, and an other button for letting the AI play one step.

(I know it's not a great work compared to what you've already done ;) , and it could really be helpfull in developping our AIs)

Reply With Quote
  #3  
Old June 6th, 2004, 04:57 AM
Cypher Cypher is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 40 Cypher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to Cypher Send a message via Yahoo to Cypher
[appleeaters]RE: Java Animation 4u!

Nice job with the Java thing. A couple bugs that I found though. I am working on my own variation of your java gui right now and will post it when its done. I have already fixed a few glitches, but there is one in particular that I am having a hard time tracking down.

Reply With Quote
  #4  
Old June 6th, 2004, 06:15 AM
Cypher Cypher is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 40 Cypher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to Cypher Send a message via Yahoo to Cypher
[appleeaters]RE: Java Animation 4u!

I have revamped your GUI and made several key changes.

First off, I fixed a couple bugs that you had, the biggest bein that you had the robots colliding with robots that havent moved yet. You must either move all robots at once, or only check against robots that have already moved.

Another fundamental change that I made was that I updated your library so that it will use the randomly generated teleport coords as defined with Tylers generator/robotslib so that your robot will run the same every time.

Next on the chopping block, I didnt like the idea of having to convert my php AI into java, so I wrote a bot that runs in your Java GUI that will load a file containing all the moves of your bot and mimic the php AI. In order for this to work, I made a small change to your robotslib (tyler) and made it create a file called robot.txt which contains each command, line by line, that your AI called. If someone wants to take more time and use a java system call and some fancy regexp to extract the moves from the results, then feel free, I am too lazy to do that.

Another change that I have made to my version of robotslib (unrelated to the java stuff) is a modified draw_game_area() function (not sure who posted the origional??). This function will draw a nice colored html table, but because these tables are pretty big and makes it difficult to load on large maps, I made it so that it will only do a max of 50x50 centered around the player. Just plunk in $robots->draw_game_area(); before or after your move.

Anywho, heres a link to the zip containing the updated stuff.

http://www.stellarcore.com/phpcontest/java/java.zip

Reply With Quote
  #5  
Old June 14th, 2004, 07:01 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[appleeaters]RE: Java Animation 4u!

Is there any way to get random moves simulated?

Reply With Quote
  #6  
Old June 18th, 2004, 02:51 PM
GPX GPX is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Haifa, Israel
Posts: 10 GPX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[appleeaters]RE: Java Animation 4u!

cypher, i've tried to compile ur code :
javac *.java
java Game
and it says
Exception in thread "main" java.lang.NoSuchMethodError: main
I'm a java n00b, what should i do ?

Reply With Quote
  #7  
Old June 18th, 2004, 08:02 PM
Psyn0c Psyn0c is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cape Town, South Africa
Posts: 16 Psyn0c User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Psyn0c
[appleeaters]RE: Java Animation 4u!

You need to run the driver class (the class with main() in it). It think it is 'fileRobot.class'.

So you'll type:
java fileRobot

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [appleeaters]Java Animation 4u!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway