473,395 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Call for Participation - JRobots Programming Challenge

New Prizes for October Jrobots Programming Challenge.
Jrobots is programming game hosted at <http://www.cfxweb.net/~jrobots>
CFXweb.
You play by programming in basic Java your own robot to fight other
players robots.Use your algorithms to predict opponent movement and
position.

For the third time in the history of Jrobots , there are even money
prizes! (Usually we play Jrobots for the immortal glory more than
anything else;->)

On the <http://www.cfxweb.net/~jrobots> JROBOTS site you can
<http://www.cfxweb.net/~jrobots/jjr_match.shtml> see on-line battles
and download free Jrobots SDK , the off-line Java applet to test your
robots and the source code of the simulator.

Please register to <http://groups.yahoo.com/group/javajousters> our
Java Algorithms Challenges group.
Good luck to all players!
Samuel a1rex@_hotmail_.com


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 13 '05 #1
6 2011
Samuel wrote:
You play by programming in basic Java your own robot to fight other


Perhaps this should be posted to Java groups, and not to c.l.c, yes?

--
Tom Zych
This is a fake email address to thwart spammers.
Real address: echo 'g******@cbobk.pbz' | rot13
Nov 13 '05 #2
what is basic java?

Tom Zych wrote:
Samuel wrote:
You play by programming in basic Java your own robot to fight other


Perhaps this should be posted to Java groups, and not to c.l.c, yes?

--
Tom Zych
This is a fake email address to thwart spammers.
Real address: echo 'g******@cbobk.pbz' | rot13


Nov 13 '05 #3
Wayne Rasmussen wrote:
what is basic java?


Sorry for this confusing term.

You program in Java but there are many restriction how the Java is used (for
security reason).
So for me (old C veteran) is like programing in C without pointers and
complex data structures. The size of the *.class code is restricted to 20
kbytes. No inheritance, only one class, no java API calls. Really simple
staff. This is an example of complete program for this game:

public class __Rabbit_ extends JJRobot {
void main() {
while(true) {
go(rand(1000),rand(1000));
}
}

void go(int dest_x, int dest_y) {
int course;
course = plot_course(dest_x,dest_y);
drive(course,50);
while(distance(loc_x(),loc_y(),dest_x,dest_y) > 50);
drive(course,0);
while (speed() > 0);
}

int distance(int x1, int y1, int x2, int y2) {
int x, y;
x = x1 - x2;
y = y1 - y2;
int d = sqrt((x*x) + (y*y));
return(d);
}

int plot_course(int xx, int yy) {
int d;
int x,y;
int scale;
int curx, cury;
scale = 100000;
curx = loc_x();
cury = loc_y();
x = curx - xx;
y = cury - yy;
if (x == 0) {
if (yy > cury)
d = 90;
else
d = 270;
} else {
if (yy < cury) {
if (xx > curx)
d = 360 + atan((scale * y) / x);
else
d = 180 + atan((scale * y) / x);
} else {
if (xx > curx)
d = atan((scale * y) / x);
else
d = 180 + atan((scale * y) / x);
}
}
return (d);
}
}

It will not win competition but it is a good start.

Best regards,
Samuel


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 13 '05 #4
Samuel <a1rex@_hotmail_.com> writes:
Wayne Rasmussen wrote:
what is basic java?


Sorry for this confusing term.

You program in Java but there are many restriction how the Java is used (for
security reason).
So for me (old C veteran) is like programing in C without pointers and
complex data structures. The size of the *.class code is restricted to 20
kbytes. No inheritance, only one class, no java API calls. Really simple
staff. This is an example of complete program for this game:


<Java code snipped>

Why do you persist in posting off-topic content to this group?
You will be reported to your ISP (if you haven't been already) if
you continue.

The fact that you are an old C veteran does give you license to
post Java code and Java contest announcements to a C-only
newsgroup. Please try over at news:comp.lang.java.programmer or
someplace where they actually give a damn.

-Micah
Nov 13 '05 #5
Micah Cowan <mi***@cowan.name> scribbled the following:
<Java code snipped> Why do you persist in posting off-topic content to this group?
You will be reported to your ISP (if you haven't been already) if
you continue. The fact that you are an old C veteran does give you license to
Is there a word missing here? Such as "not"?
post Java code and Java contest announcements to a C-only
newsgroup. Please try over at news:comp.lang.java.programmer or
someplace where they actually give a damn.


--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"And according to Occam's Toothbrush, we only need to optimise the most frequent
instructions."
- Teemu Kerola
Nov 13 '05 #6
Joona I Palaste <pa*****@cc.helsinki.fi> writes:
Micah Cowan <mi***@cowan.name> scribbled the following:
<Java code snipped>

Why do you persist in posting off-topic content to this group?
You will be reported to your ISP (if you haven't been already) if
you continue.

The fact that you are an old C veteran does give you license to


Is there a word missing here? Such as "not"?


(his claim in the message to which this was my response; just
giving him the benefit of the doubt).

--
Micah
Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Samuel | last post by:
Jrobots is programming game for smart people- check your level. This month winners of entry-level category (CADETS) get two prizes each worth $30 dollars! New Software Development Kit, sample...
0
by: Hubert Baumeister | last post by:
Fifth International Conference on eXtreme Programming and Agile Processes in Software Engineering XP2004 June 6-10, 2004, Garmisch-Partenkirchen, Germany http://www.xp2004.org/
0
by: Birger M?ller-Pedersen | last post by:
-------------------------------------------------------------------- NEW DEADLINE FOR EARLY REGISTRATION: May 17 -------------------------------------------------------------------- Call for...
0
by: Jeremy Hylton | last post by:
Call for Participation PyCon DC 2004 Sprints March 20-23, 2004 http://www.python.org/cgi-bin/moinmoin/SprintPlan2004 The Python Software Foundation is sponsoring four days of sprints before...
0
by: Jacob Hallen | last post by:
EuroPython 2004 to be held 7-9 June in Göteborg, Sweden. The EuroPython conference will have tracks for Science, Business, Education, Applications, Frameworks, Zope and the Python language...
0
by: melledge | last post by:
XML 2005 Call for Participation now open - deadline May 13 The XML 2005 Call for Papers is now open. Please visit http://www.xmlconference.org for submission details. XML 2005 takes place at...
0
by: Birger M?ller-Pedersen | last post by:
-------------------------------------------------------------------- NEW DEADLINE FOR EARLY REGISTRATION: May 17 -------------------------------------------------------------------- Call for...
0
by: Torsten Grust | last post by:
Call for Participation and Demonstrations X I M E - P 2 0 0 6 3rd International Workshop on XQuery Implementation, Experience and Perspectives June 30, 2006 Collocated with ACM SIGMOD/PODS...
0
by: sorin.lerner | last post by:
********************************************************************* * ACM SIGPLAN-SIGACT Symposium * * on ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.