🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.comp.lang.java
17 messages
17 total messages Started by ����(��) Fri, 17 Feb 2006 17:10
��������Robocode����
#202
Author: ����(��)
Date: Fri, 17 Feb 2006 17:10
1 lines
1223 bytes
����ͻȻ���������Ȥ�ˣ��뿴�����д�Ļ�����:)
Re: ��������Robocode����
#203
Author: Qi Yue
Date: Sat, 18 Feb 2006 04:44
4 lines
1315 bytes
�ǵ���һ�ڡ�����Ա����־�ķ��滹�������

"С����(��)" <root@guohai.org.discuss> д����Ϣ����:43f6034c.57369853@cnusenet.3322.org...
> ����ͻȻ���������Ȥ�ˣ��뿴�����д�Ļ�����:) 
Re: ��������Robocode����
#205
Author: �IJ���
Date: Sat, 18 Feb 2006 07:04
11 lines
1749 bytes
����javaд�İɣ�
����java

--
�����ˡ�������һ���˫�ִ��£���������ֻ����ȫ�?�����ɫ��â��Ȼ���â��
ȫ���𽥼��е�����ֻ�ս���ȭͷ����ȭͷ�����γ�������״���ϱ仯�ĺ��������
������֧�����������������һ��������������һ�Ѵ��ӡ�
������ר�����������У�����������Ͳ��󣬾�Ȼ�Ѿ�����������˫���ˡ���
��װ��üëһ�������ɵ��ѿڶ����

(�ţ� 3��)��
Re: ��������Robocode����
#206
Author: �IJ���
Date: Sat, 18 Feb 2006 09:57
14 lines
1898 bytes
ͦ�����
�Ǹ���crazy�Ļ�������ǿ
��ϧ��д����

����ǰ�Ĵ�о��ս����˼

--
�����ˡ�������һ���˫�ִ��£���������ֻ����ȫ�?�����ɫ��â��Ȼ���â��
ȫ���𽥼��е�����ֻ�ս���ȭͷ����ȭͷ�����γ�������״���ϱ仯�ĺ��������
������֧�����������������һ��������������һ�Ѵ��ӡ�
������ר�����������У�����������Ͳ��󣬾�Ȼ�Ѿ�����������˫���ˡ���
��װ��üëһ�������ɵ��ѿڶ����

(�ţ� 3��)��
Re: ��������Robocode����
#207
Author: ����(��)
Date: Sat, 18 Feb 2006 11:10
7 lines
1415 bytes
��Ȼ��Javaд�ĵ��ܼ�
��Sat, 18 Feb 2006 15:04:37 +0800ʱ,"�IJ���"�� ��Re:
��������Robocode���� ���з���Ĵ���:
--

>����javaд�İɣ�
>����java
Re: ��������Robocode����
#209
Author: ����(��)
Date: Sat, 18 Feb 2006 11:11
12 lines
1658 bytes
��ϸ����������
http://www-128.ibm.com/developerworks/cn/java/j-robocode/
��Sat, 18 Feb 2006 21:39:25 +0800ʱ,"NewBlue"�� ��Re:
��������Robocode���� ���з���Ĵ���:
--

>
>��û�и��Ľ��ܣ����� ʲô�̶����ϵĴ��룬�����ǻ����ˣ���
>
>[newblue@bEyoOo ~]$ cat ����
>
>> ����ͻȻ���������Ȥ�ˣ��뿴�����д�Ļ�����:)
Re: ��������Robocode����
#208
Author: ����(��)
Date: Sat, 18 Feb 2006 11:12
11 lines
1847 bytes
������ͦ���ϵ���־�ˣ��Ǻ�
�������IBM03����ʣ�ģ�����ȥIBM��վӢ��վ���Ҳ����ˣ�ֻ������վ�㻹��
��Sat, 18 Feb 2006 12:44:17 +0800ʱ,"Qi Yue"�� ��Re:
��������Robocode���� ���з���Ĵ���:
--

>�ǵ���һ�ڡ�����Ա����־�ķ��滹�������
>
>"С����(��)" <root@guohai.org.discuss> д����Ϣ����:43f6034c.57369853@cnusenet.3322.org...
>> ����ͻȻ���������Ȥ�ˣ��뿴�����д�Ļ�����:) 
>
Re: ��������Robocode����
#210
Author: �IJ���
Date: Sat, 18 Feb 2006 12:16
14 lines
1829 bytes
�������

����������Dz��Ǿ���һ�������¼�����ࣿ



--
�����ˡ�������һ���˫�ִ��£���������ֻ����ȫ�?�����ɫ��â��Ȼ���â��
ȫ���𽥼��е�����ֻ�ս���ȭͷ����ȭͷ�����γ�������״���ϱ仯�ĺ��������
������֧�����������������һ��������������һ�Ѵ��ӡ�
������ר�����������У�����������Ͳ��󣬾�Ȼ�Ѿ�����������˫���ˡ���
��װ��üëһ�������ɵ��ѿڶ����

(�ţ� 3��)��
Re: ��������Robocode����
#211
Author: Mr.Bug
Date: Sat, 18 Feb 2006 12:39
52 lines
2127 bytes
ѧϰһ��crazy��Ȼ��д����ǿ��
package sample;
import robocode.*;
public class Crazy extends AdvancedRobot
{
 boolean movingForward;
 public void run() {
  while (true)
  {
   setAhead(40000);
   movingForward = true;
   setTurnRight(90);
   waitFor(new TurnCompleteCondition(this));
   setTurnLeft(180);
   waitFor(new TurnCompleteCondition(this));
   setTurnRight(180);
   waitFor(new TurnCompleteCondition(this));
  }
 }
 public void onHitWall(HitWallEvent e)
 {
  reverseDirection();
 }
 public void reverseDirection() {
  if (movingForward)
  {
   setBack(40000);
   movingForward = false;
  }
  else
  {
   setAhead(40000);
   movingForward = true;
  }
 }
 public void onScannedRobot(ScannedRobotEvent e)
 {
  fire(1);
 }
 public void onHitRobot(HitRobotEvent e)
 {
  if (e.isMyFault())
   reverseDirection();
 }
}
"�IJ���" <a@a.a> д���ʼ� news:dt6r2f$ajc$1@news.yaako.com...
> ͦ�����
> �Ǹ���crazy�Ļ�������ǿ
> ��ϧ��д����
>
> ����ǰ�Ĵ�о��ս����˼
>
Re: 组里有玩Robocode的吗?
#204
Author: NewBlue
Date: Sat, 18 Feb 2006 13:39
11 lines
1639 bytes
��û�и��Ľ��ܣ����� ʲô�̶����ϵĴ��룬�����ǻ����ˣ���

[newblue@bEyoOo ~]$ cat ����

> ����ͻȻ���������Ȥ�ˣ��뿴�����д�Ļ�����:)

-- 
�������¿�����ϵͳ���°�װ�������µ�˼�룬ӭ���µľ��棬һ����������
�겻��ʡǮ�����ϲ���
BeYoOo���繤���� [http://www.beyooo.com/]
Re: ��������Robocode����
#213
Author: ����(��)
Date: Sat, 18 Feb 2006 13:48
16 lines
1998 bytes
������һ��
http://www-128.ibm.com/developerworks/search/searchResults.jsp?searchType=1&searchSite=dWChina&pageLang=zh&langEncoding=UTF8&searchScope=dW&query=robocode&Search.x=26&Search.y=13
���ﻹ�и�����ϸ����
��Sun, 19 Feb 2006 05:02:01 +0800ʱ,"NewBlue"�� ��Re:
��������Robocode���� ���з���Ĵ���:
--

>
>�
>
>[newblue@bEyoOo ~]$ cat ����
>
>> ��ϸ����������
>> http://www-128.ibm.com/developerworks/cn/java/j-robocode/
>> ��Sat, 18 Feb 2006 21:39:25 +0800ʱ,"NewBlue"�� ��Re:
>> ��������Robocode���� ���з���Ĵ���:
Re: 组里有玩Robocode的吗?
#214
Author: 量子公民
Date: Sat, 18 Feb 2006 15:24
2 lines
1600 bytes
估计模式类似这个游戏:
http://www.darwinia.co.uk
当然,Java肯定比这游戏复杂+能干...
Re: 组里有玩Robocode的吗?
#215
Author: snnn
Date: Sat, 18 Feb 2006 16:28
12 lines
1421 bytes
"����(��)" <root@guohai.org.discuss> writes:

> ����ͻȻ���������Ȥ�ˣ��뿴�����д�Ļ�����:)

��˵����java����Ա������е�robocode��
�������robocup
�������������������



-- 
�����ϵ�ֻ��һֻ���...
Re: 组里有玩Robocode的吗?
#212
Author: NewBlue
Date: Sat, 18 Feb 2006 21:02
14 lines
1799 bytes
�

[newblue@bEyoOo ~]$ cat ����

> ��ϸ����������
> http://www-128.ibm.com/developerworks/cn/java/j-robocode/
> ��Sat, 18 Feb 2006 21:39:25 +0800ʱ,"NewBlue"�� ��Re:
> ��������Robocode���� ���з���Ĵ���:

-- 
�������¿�����ϵͳ���°�װ�������µ�˼�룬ӭ���µľ��棬һ����������
�ó��˵�Ѫϴˢ�Լ��ij��裬���Լ�������ϴˢ�Լ�������
BeYoOo���繤���� [http://www.beyooo.com/]
Re: ��������Robocode����
#216
Author: ����99
Date: Sun, 19 Feb 2006 06:37
18 lines
2157 bytes
�������robocup�ڴ�ѧ������˺ܶ࣬�Ǻ�~~

�� Sun, 19 Feb 2006 00:28:11 +0800 ʱ, snnn <snnn119@gmail.com.removeme> д��:
--

>"����(��)" <root@guohai.org.discuss> writes:
>
>> ����ͻȻ���������Ȥ�ˣ��뿴�����д�Ļ�����:)
>
>��˵����java����Ա������е�robocode��
>�������robocup
>�������������������

--
�������ǣ���Ȼһ�����
Ҳϣ�������������Ĺ�â��
��ӭ���� news://news.cn99.com/cn.fan
�й�fans�������飬�й�fans�ļ�......
Re: 组里有玩Robocode的吗?
#223
Author: snnn
Date: Mon, 20 Feb 2006 02:09
9 lines
1446 bytes
����99 <bianlule@bianlule.3322.org> writes:

> �������robocup�ڴ�ѧ������˺ܶ࣬�Ǻ�~~

�ǰ���
����ʲô����д�����ԣ�ֻҪ��ᴦ��socket

-- 
�����ϵ�ֻ��һֻ���...
Re: ��������Robocode����
#230
Author: ����99
Date: Tue, 21 Feb 2006 00:41
17 lines
2137 bytes
���Ҳ��ͷ�۵����飬�Ǻ�~~

�� Mon, 20 Feb 2006 10:09:34 +0800 ʱ, snnn <snnn119@gmail.com.removeme> д��:
--

>����99 <bianlule@bianlule.3322.org> writes:
>
>> �������robocup�ڴ�ѧ������˺ܶ࣬�Ǻ�~~
>
>�ǰ���
>����ʲô����д�����ԣ�ֻҪ��ᴦ��socket

--
�������ǣ���Ȼһ�����
Ҳϣ�������������Ĺ�â��
��ӭ���� news://news.cn99.com/cn.fan
�й�fans�������飬�й�fans�ļ�......
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads