New AI Contest:Planets

Online C++ programming contests.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard, raimo

Postby Darryl » Sat Dec 03, 2005 12:50 pm

Corsix wrote:One thing, I'm working on a GUI, but it would really help if each planet had an X/Y co-ordinate. While this is not too major, it would also require the planet linking code to be changed so that each planet is connected to it's [between one and three] nearest neighbours.


Did you download the original game? I'd rather not make the links just connect to the 3 closest. Right now it creates two links between its 1st and 10th nearest neighbor(numerically. In the original game they could jump a little ways, but there is even a setting to make them link really far away.

I have to run to store, but I will add coordinate system later though i am not really sure how i should generate the coordinates
User avatar
Darryl
 
Posts: 1342
Joined: Wed Sep 01, 2004 10:50 am
Location: Cayman Islands

Postby Corsix » Sat Dec 03, 2005 1:42 pm

Nah, I've got some code to generate co-ordinates. Would just have looked nicer with less connection lines going through other planets.
Code: Select all
#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}
User avatar
Corsix
 
Posts: 1181
Joined: Fri Jul 23, 2004 9:33 am
Location: Berkeley, UK

Postby Darryl » Sat Dec 03, 2005 3:34 pm

ok added coordinates to planet class
User avatar
Darryl
 
Posts: 1342
Joined: Wed Sep 01, 2004 10:50 am
Location: Cayman Islands

Postby Darryl » Tue Dec 06, 2005 7:45 am

Corsix, how's the gui coming?
User avatar
Darryl
 
Posts: 1342
Joined: Wed Sep 01, 2004 10:50 am
Location: Cayman Islands

Postby Corsix » Tue Dec 06, 2005 11:44 am

I'm working on the full GUI, unfortunatley writing an early draft my entry is more important. Anyway, I did throw something together quickly to help me understand whats going on:
Image
Code: Select all
#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}
User avatar
Corsix
 
Posts: 1181
Joined: Fri Jul 23, 2004 9:33 am
Location: Berkeley, UK

Postby Corsix » Tue Dec 06, 2005 3:03 pm

.. I've sorting out the _slow_ rendering problem in the true GUI :)
I haven't grabbed the framework with co-ordinates built in it yet though; I'm currently generating them myself.
Image
Code: Select all
#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}
User avatar
Corsix
 
Posts: 1181
Joined: Fri Jul 23, 2004 9:33 am
Location: Berkeley, UK

Postby Darryl » Tue Dec 06, 2005 3:54 pm

looks interesting, the framework doesn't generate the coordinates, it just have member to hold the values (and member functons tp set and get the values)
User avatar
Darryl
 
Posts: 1342
Joined: Wed Sep 01, 2004 10:50 am
Location: Cayman Islands

Postby exomo » Wed Dec 07, 2005 1:21 pm

Nice contest, really. But I won't take part this time. I've got too much to do.
But I'm watching you 8)
Who needs a signature anyway.
User avatar
exomo
 
Posts: 881
Joined: Fri Sep 26, 2003 12:30 pm
Location: germany->baden

Postby Corsix » Wed Dec 07, 2005 2:57 pm

exomo wrote:But I'm watching you 8)
Time to get my tinfoil hat out ;)
Code: Select all
#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}
User avatar
Corsix
 
Posts: 1181
Joined: Fri Jul 23, 2004 9:33 am
Location: Berkeley, UK

Previous

Return to Contests

Who is online

Users browsing this forum: No registered users and 0 guests