Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  the AI contest is here  (Read 2814 times)
0 Members and 1 Guest are viewing this topic.
Offline misterX

Junior Member




java forever!


« Posted 2004-11-15 10:43:34 »


EDIT:

News & infos


---------------------------------------------------------------------------

...well well well, the time for this contest is arrived! welcome!

The subject is... Racing! Half way between classic car races and frictionless space ship motions, you'll have to program the best AI you can. What makes this race different from the others is the frictionless motion of ships: once a ship moves, it continues to drift away until it accelerates in the opposite direction, like in asteroids game. And the same applies also to angular velocity/acceleration. Managing good curves and overtaking others become really a tricky challenge. On the other hand, they are also a bit like usual car races because of the (angular) velocity limits.
The track to follow is simply represented as a serie of of gates, where each gate is made of two "beacons", where ship must pass through as quick as possible.

As you've guessed, the aim of this contest is to make the best pilot AI. In the end, all these AIs will compete against each other on various tracks and using various ship parameters. (Details will be set later depending on the number of entries.)

Now you can:
-watch the demo applet
-download the framework
-browse the javadoc
-look at a race test and pilot AI example
-read details & FAQ
-read the "first thoughts" about how to make the AI


I tried to keep the framework and the way to use it as simple as possible. I hope you appreciate the way it is done. The framework will be updated soon to provide more test tracks, fix eventual minor bugs and, most important, two other mini AI examples.

Simple rules, simple framework and a universe of complexity: enjoy!

Offline ap_kelly

Junior Member




Java rocks!


« Reply #1 - Posted 2004-11-15 20:13:55 »

I tried the demo applet and all I got was this error

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
Ship angle: 0.0

Number of gates: 4

Opponent 0 acceleration: 0.0

Opponent 1 acceleration: 0.0

Ship angle: 0.0

Number of gates: 4

Opponent 0 acceleration: 0.0

Opponent 1 acceleration: 0.0

Ship angle: 0.0

Number of gates: 4

Opponent 0 acceleration: 0.0

Opponent 1 acceleration: 0.0

java.lang.Error: Do not use aicontest.Demo.add() use aicontest.Demo.getContentPane().add() instead

      at javax.swing.JApplet.createRootPaneException(Unknown Source)

      at javax.swing.JApplet.addImpl(Unknown Source)

      at java.awt.Container.add(Unknown Source)

      at aicontest.Demo.createGUI(Demo.java:91)

      at aicontest.Demo.access$000(Demo.java:10)

      at aicontest.Demo$1.run(Demo.java:34)

      at java.awt.event.InvocationEvent.dispatch(Unknown Source)

      at java.awt.EventQueue.dispatchEvent(Unknown Source)

      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.run(Unknown Source)


I'm running java 1.4.2_05 on WinXP Pro SP2.

Andy.

Offline reardonj

Senior Newbie





« Reply #2 - Posted 2004-11-15 21:01:10 »

Quote
I tried the demo applet and all I got was this error

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
Ship angle: 0.0

Number of gates: 4

Opponent 0 acceleration: 0.0

Opponent 1 acceleration: 0.0

Ship angle: 0.0

Number of gates: 4

Opponent 0 acceleration: 0.0

Opponent 1 acceleration: 0.0

Ship angle: 0.0

Number of gates: 4

Opponent 0 acceleration: 0.0

Opponent 1 acceleration: 0.0

java.lang.Error: Do not use aicontest.Demo.add() use aicontest.Demo.getContentPane().add() instead

      at javax.swing.JApplet.createRootPaneException(Unknown Source)

      at javax.swing.JApplet.addImpl(Unknown Source)

      at java.awt.Container.add(Unknown Source)

      at aicontest.Demo.createGUI(Demo.java:91)

      at aicontest.Demo.access$000(Demo.java:10)

      at aicontest.Demo$1.run(Demo.java:34)

      at java.awt.event.InvocationEvent.dispatch(Unknown Source)

      at java.awt.EventQueue.dispatchEvent(Unknown Source)

      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.run(Unknown Source)


I'm running java 1.4.2_05 on WinXP Pro SP2.

Andy.


I think this happened because before java 1.5 you couldn't call the add() method on a JFrame or subclass of it.

Also, MisterX, in the Track class do you think you could add methods to get the coordinates or the First Beacon, Second Beacon and Gate Center as Points?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline misterX

Junior Member




java forever!


« Reply #3 - Posted 2004-11-15 22:21:55 »


thanks, should now be fixed.

concerning the beacon coordinates as point, it would be preferable to make a small method in your pilot class like:
private Point getFirstBeaconPos(int gate) {
  return new Point((int) track.getFirstBeaconX(gate), (int) track.getFirstBeaconY(gate));
}

Or fill a point array in the init method.
Offline moogie

JGO Knight


Medals: 11
Projects: 5
Exp: 10 years


Java games rock!


« Reply #4 - Posted 2004-11-16 06:08:05 »

I am quite interested in making an entry... however it i will not be able to start programming for it until after the 25th as i have exams until then.

hopefully i will be able to produce something in 10 days Wink
Offline ap_kelly

Junior Member




Java rocks!


« Reply #5 - Posted 2005-01-03 20:52:20 »

So did anyone enter this contest? Is there going to be an announcement about winners and where we can view their efforts?

Cheers,

Andy.

Offline misterX

Junior Member




java forever!


« Reply #6 - Posted 2005-01-13 19:48:48 »

As the initial post says:
Quote


there was only a single submission  :-/
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (16 views)
2014-04-15 18:08:23

BurntPizza (14 views)
2014-04-15 03:46:01

UprightPath (27 views)
2014-04-14 17:39:50

UprightPath (12 views)
2014-04-14 17:35:47

Porlus (29 views)
2014-04-14 15:48:38

tom_mai78101 (51 views)
2014-04-10 04:04:31

BurntPizza (110 views)
2014-04-08 23:06:04

tom_mai78101 (211 views)
2014-04-05 13:34:39

trollwarrior1 (180 views)
2014-04-04 12:06:45

CJLetsGame (185 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!