ARF Contest A #VC (2007-07-16 to 07-19 20:00 GMT)

The easier general contest type that runs twice per week.

Moderator: Moderators

ARF Contest A #VC (2007-07-16 to 07-19 20:00 GMT)

Postby NickyNick » Mon Jul 16, 2007 9:13 pm

Welcome to the "A" League Contest #95 - Oriental!

Submissions to: t.nick.a@gmail.com

Contest rules link: http://armadillo.metaclassofnil.com/forum/viewtopic.php?t=232

Naming convention is:
[DollarsRemaining]-[YourForumName]-[SolutionName]

Example:
2999-MyAss-JustWantToKickSome

GMT Time link: http://wwp.greenwichmeantime.com/

Special thanks to Ioncorpse for giving idea for this contest :D
Attachments
ARFC_A_VC_Oriental.lvl
level
(16.75 KiB) Downloaded 174 times
arfc a 95.jpg
screenshot
AR & W:A forever
User avatar
NickyNick
Champion of Light
Champion of Light
 
Posts: 1330
Joined: Sat Dec 30, 2006 10:43 pm
Location: Ukraine - Kharkov

Postby McGinge » Mon Jul 16, 2007 9:26 pm

Im lovin this Nick; more of the same!! :D
In an ideal world, where anything and everything is in perfect form, is there a perfect form of imperfection?

Work THAT one out! :)
User avatar
McGinge
Contest Legend
Contest Legend
 
Posts: 936
Joined: Mon May 28, 2007 2:49 pm
Location: Sevenoaks, England

Postby NickyNick » Mon Jul 16, 2007 9:28 pm

Btw, I think it is the first contest level generated by the program :wink: I would never draw that Dragon Curve fractal by hands :lol:
AR & W:A forever
User avatar
NickyNick
Champion of Light
Champion of Light
 
Posts: 1330
Joined: Sat Dec 30, 2006 10:43 pm
Location: Ukraine - Kharkov

Postby McGinge » Mon Jul 16, 2007 9:29 pm

You generated that?? Its great!! I love the dilemma; which way to go!!! :D
In an ideal world, where anything and everything is in perfect form, is there a perfect form of imperfection?

Work THAT one out! :)
User avatar
McGinge
Contest Legend
Contest Legend
 
Posts: 936
Joined: Mon May 28, 2007 2:49 pm
Location: Sevenoaks, England

Postby gamma57 » Mon Jul 16, 2007 10:00 pm

Thats like the 10th or so iteration. Cool program whatever you used!
build yourself a ramblin wreck
User avatar
gamma57
Contest Legend
Contest Legend
 
Posts: 170
Joined: Tue May 01, 2007 5:02 pm
Location: Atlanta, GA

Postby NickyNick » Mon Jul 16, 2007 10:16 pm

9th if exactly :wink: How could you determine it so close? :)
AR & W:A forever
User avatar
NickyNick
Champion of Light
Champion of Light
 
Posts: 1330
Joined: Sat Dec 30, 2006 10:43 pm
Location: Ukraine - Kharkov

Postby JustcallmeDrago » Mon Jul 16, 2007 10:22 pm

How did you even know it was an iteration? Where's this program mentioned? :shock:
User avatar
JustcallmeDrago
Contest Veteran
Contest Veteran
 
Posts: 904
Joined: Sun Mar 25, 2007 6:19 pm
Location: Earth

Postby McGinge » Mon Jul 16, 2007 10:26 pm

A rubbish opening 2532 +D... I thought it would be easy to get a fairly good score, but it seems that the last section is slightly harder than anticipated...
In an ideal world, where anything and everything is in perfect form, is there a perfect form of imperfection?

Work THAT one out! :)
User avatar
McGinge
Contest Legend
Contest Legend
 
Posts: 936
Joined: Mon May 28, 2007 2:49 pm
Location: Sevenoaks, England

Postby NickyNick » Mon Jul 16, 2007 10:30 pm

I used Tim McSweeney's Python parser scripts, which I've translated to C++, and wrote simple program for generating Dragon Curve on the level.
You can find those scripts with my ARTweaker program, here: http://armadillo.metaclassofnil.com/forum/viewtopic.php?t=1283. And here is code for Dragon Curve:
Code: Select all
void DrawDragonCurve (int grade)
{
   float eps = 1e-4;


   ARLevel level;
   level.Init ();
   level.loadLevel ("blank.lvl");
   // blank is empty level

   int i,j;
   int turns;
   int rotation;
   float x, y;
   float length;
   int link_type;

   turns = (1 << grade) - 1;
   // 0 - up
   // 1 - right
   // 2 - down
   // 3 - left
   rotation = 0;
   x = 0;
   y = 0;
   length = 1;
   link_type = LINK_TYPE_BAR;

   level.addPoint (x, y, POINT_TYPE_ANCHOR);
   level.addPoint (x, y+length, POINT_TYPE_ANCHOR);
   level.addLink (&level.points[0], &level.points[1], link_type);

   y += length;

   bool turn, found;
   int i1,i2;
   i1 = 1;
   for (i=1; i<=turns; i++)
   {
      turn = (((i & -i) << 1) & i) != 0;
      if (turn)
         rotation++;
      else
         rotation--;
      if (rotation < 0)
         rotation += 4;
      if (rotation > 3)
         rotation -= 4;

      switch (rotation)
      {
      case 0:
         y += length;
         break;
      case 1:
         x += length;
         break;
      case 2:
         y -= length;
         break;
      case 3:
         x -= length;
         break;
      }

      found = false;
      j = 0;
      while ((j < level.points_num) && !found)
      {
         if ((fabs(level.points[j].x - x) < eps) && (fabs(level.points[j].y - y) < eps))
            found = true;
         else
            j++;
      }      

      if (found)
         i2 = j;
      else
      {
         level.addPoint (x, y, POINT_TYPE_ANCHOR);
         i2 = level.points_num-1;
      }

      level.addLink (&level.points[i1], &level.points[i2], link_type);

      i1 = i2;
   }

   level.saveLevel ("DragonCurve.lvl");
}
Last edited by NickyNick on Tue Jul 17, 2007 10:44 am, edited 1 time in total.
AR & W:A forever
User avatar
NickyNick
Champion of Light
Champion of Light
 
Posts: 1330
Joined: Sat Dec 30, 2006 10:43 pm
Location: Ukraine - Kharkov

Postby McGinge » Mon Jul 16, 2007 10:43 pm

erm.... rite... I OBVIOUSLY understand what you've written there... :roll: 2700+D by the way, still rubbish though...
In an ideal world, where anything and everything is in perfect form, is there a perfect form of imperfection?

Work THAT one out! :)
User avatar
McGinge
Contest Legend
Contest Legend
 
Posts: 936
Joined: Mon May 28, 2007 2:49 pm
Location: Sevenoaks, England

Postby JonathanF » Mon Jul 16, 2007 11:25 pm

I'm not really a fan of Python, it's too dynamic for my likes.
"It's just a reflection of dark past, remains of a ruined, dead, cursed soul, and also another reason for you to hate me..."

-Meyhna'ch
User avatar
JonathanF
Armadillo Lord
Armadillo Lord
 
Posts: 423
Joined: Tue Jan 09, 2007 5:23 pm
Location: Jerusalem, Israel

Postby McGinge » Mon Jul 16, 2007 11:29 pm

You gotta admit the levels good though... :D
In an ideal world, where anything and everything is in perfect form, is there a perfect form of imperfection?

Work THAT one out! :)
User avatar
McGinge
Contest Legend
Contest Legend
 
Posts: 936
Joined: Mon May 28, 2007 2:49 pm
Location: Sevenoaks, England

Postby JonathanF » Mon Jul 16, 2007 11:31 pm

It was made in C++ ;)

But a level is a level, and creating a level requires a minimal knowledge in algorithms... ;)
"It's just a reflection of dark past, remains of a ruined, dead, cursed soul, and also another reason for you to hate me..."

-Meyhna'ch
User avatar
JonathanF
Armadillo Lord
Armadillo Lord
 
Posts: 423
Joined: Tue Jan 09, 2007 5:23 pm
Location: Jerusalem, Israel

Postby twifosp » Tue Jul 17, 2007 12:09 am

Greetings all!

I just found this forum and I'm glad to know this game doesn't end with the built in levels. A contest a week is awesome! Especially with cool levels like this. I hope I can compete on the same level as some of you!

First go 2110+

Someone posted 2700+ D... does that mean dark as in using force paddles?
twifosp
 
Posts: 2
Joined: Fri Jun 29, 2007 12:59 am

Postby JustcallmeDrago » Tue Jul 17, 2007 12:52 am

twifosp wrote:Greetings all!

I just found this forum and I'm glad to know this game doesn't end with the built in levels. A contest a week is awesome! Especially with cool levels like this. I hope I can compete on the same level as some of you!

First go 2110+

Someone posted 2700+ D... does that mean dark as in using force paddles?


Yes. Using the force (force paddles, as you said, or node stacking, which is used to break things) or having the armadillo go outside the boundaries, where there is no collision detection (he can go through things) automatically make a solution dark.

Contest Rules Link: http://armadillo.metaclassofnil.com/forum/viewtopic.php?t=232
User avatar
JustcallmeDrago
Contest Veteran
Contest Veteran
 
Posts: 904
Joined: Sun Mar 25, 2007 6:19 pm
Location: Earth

Next

Return to "A" league

Who is online

Users browsing this forum: No registered users and 5 guests

cron