sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 20 Jul 2011 12:38 PM |
ok so first of all this is a completely ripoff of the java game Robocode so if you've got that this will make a lot more sense
Basically we have a game with robots that can move and shoot but nothing to actually trigger these actions. Your job is to script the robots intelligence to detect others and shoot. You don't get to add anything else, you only get to fire the methods it provides.
now since I no longer regularly use RS I have no idea what the easiest way to do this is |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 20 Jul 2011 12:48 PM |
| Uh, the first bit, ya. I think I would only have certain functions open like turn, shoot, etc. but no access to 'world'. Otherwise teleportation and st00f would be possible |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 20 Jul 2011 01:17 PM |
:l
I'd maybe copy Robocode even more and design an event that's fired when the radar of one bot "sees another"
Actually, download Robocode, try it out. It's in Java but has loads of sample bots anyway. Also
IT'S FREEEEEEEEEEEEEEEEEEEEEEEEEEee |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2011 01:19 PM |
Has anyone tried DarwinBots? It's also FREEEEEEEEEEeeee.
I based my four evolving AIs' "DNA" on the DarwinBots language. The fifth one (that I just started yesterday! :D) is slightly different, though.
|
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
| |
|
|
| 21 Jul 2011 02:01 PM |
*Downloads Robocode*
I now have a way to learn Java :D |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 21 Jul 2011 02:03 PM |
actually it's not a great way to learn java but at least it's visual
If you want to use Java properly,
ECLIPSE |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2011 02:03 PM |
| I have eclipse, but no goal while using it... |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
| |
|
|
| 21 Jul 2011 02:05 PM |
| Well, I did. Should I get it for Java or Java EE? |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 21 Jul 2011 02:08 PM |
EE is more specialised. you want eclipse IDE for java delevopers, preferably
or whatever floats your boat |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2011 02:10 PM |
| I'll get your suggestion. And start making tanks :D |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2011 02:18 PM |
| Java doesn't look that hard. I've read some on it already, too. |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 21 Jul 2011 02:21 PM |
I only started on Monday.. it's only difficult if you've never done OOP before
btw you're forbidden from saying "Java doesn't look that hard" till you know all about class heirachy |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2011 02:25 PM |
I've read a few books on OOP languages. And a guide focusing on Java for the Android platform.
BTW class hierarchy isn't THAT bad... |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
| |
|
|
| 21 Jul 2011 02:34 PM |
Ok then :P
I'm now making my first bot :D |
|
|
| Report Abuse |
|
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 22 Jul 2011 07:51 AM |
MK ONTOPIC NOW GUISE
IS THIS EPIC OR NOT |
|
|
| Report Abuse |
|
|
mustyoshi
|
  |
 |
| Joined: 27 Dec 2007 |
| Total Posts: 41651 |
|
|
| 22 Jul 2011 07:58 AM |
This is an epic idea.
You'd need to add functions to "see". Robot:Look("Front") Which would raycast and return what ever it hits?
~ITS FREEEEE |
|
|
| Report Abuse |
|
|
The2nd5oo
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1599 |
|
| |
|
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
|
| 22 Jul 2011 08:04 AM |
@mustyoshi:
my plan is to have some kinds of built-in functions like
rotateTurret(90)
and possibly radian equivalents. Also, they'd have to spawn in random locations in random directions. Then they have no idea where they are and which way "front" is. Devious. |
|
|
| Report Abuse |
|
|
mustyoshi
|
  |
 |
| Joined: 27 Dec 2007 |
| Total Posts: 41651 |
|
|
| 22 Jul 2011 08:29 AM |
repeat rotateTurrent(45); fire(); wait(.5); until IsDead(); haha
~ITS FREEEEE |
|
|
| Report Abuse |
|
|
The2nd5oo
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1599 |
|
|
| 22 Jul 2011 08:30 AM |
| Can you make it look like a yoshi :o |
|
|
| Report Abuse |
|
|