ARF Contest C #XVIII (2007-07-26 to 08-02 18:00 GMT)

For special contests with modified rules.

Moderator: Moderators

ARF Contest C #XVIII (2007-07-26 to 08-02 18:00 GMT)

Postby NickyNick » Wed Jul 25, 2007 11:14 pm

Hello peeps,
welcome to the "C" League Contest #18 - White Tree!

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

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

Naming convention is:
[Score]-[Time]-[YourForumName]-[SolutionName]

Example:
1-59_99-MyAss-ImCrazySpeedManiac

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

So, the rules of this contest:
1) The goal is to break as many tensioned clothes on the level as you can. Each broken cloth gives you one point. The clothes must be broken by :armadillo:
2) You must complete the level
3) You can spend any amount of money :D
4) You can build whatever you want and anywhere, except the clothes (do not weld them with any stuff!)
5) The total score determines the winner. In case of equal score, time is determinant

Enjoy :D
Attachments
arfc c 18.jpg
the screenshot
ARFC_C_XVIII_WhiteTree.lvl
the level
(13.75 KiB) Downloaded 229 times
Last edited by NickyNick on Sat Jul 28, 2007 6:01 pm, 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 scimaster » Wed Jul 25, 2007 11:18 pm

Did you use C code to make this level, too?
Code: Select all
ww@localhost:echo $name

"\  /\  /  /\   |--  |--  |=   |\  |"
" \/  \/  /- \  |    |    |--  |  \|"

Done

ww@localhost:


http://www.freewebs.com/scimaster
User avatar
scimaster
 
Posts: 212
Joined: Wed Apr 25, 2007 2:00 am
Location: CA, MN

Postby gamma57 » Wed Jul 25, 2007 11:50 pm

Sweet. Fractal Madness!

I think a Cantor Dust plinko type game would be funny.
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 » Thu Jul 26, 2007 4:56 pm

Yeah, here is the code for this fractal:
Code: Select all
void DrawTree_stage (ARLevel& level, int grade, float length, float angle, int index, float x, float y, float rotation)
{
   float eps = 1e-4;


   int i,j;
   bool found;
   float new_x, new_y;
   int link_type;

   if (grade <= 1)
      link_type = LINK_TYPE_PLATE;
   else
      link_type = LINK_TYPE_BAR;

   // left branch
   new_x = x + cos(rotation + angle) * length;
   new_y = y + sin(rotation + angle) * length;

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

   if (found)
      i = j;
   else
   {
      level.addPoint (new_x, new_y, POINT_TYPE_ANCHOR);
      i = level.points_num-1;
   }

   level.addLink (&level.points[index], &level.points[i], link_type);

   if (grade > 1)
      DrawTree_stage (level, grade-1, length/2, angle, i, new_x, new_y, rotation + angle);

   // middle branch
   new_x = x + cos(rotation) * length;
   new_y = y + sin(rotation) * length;

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

   if (found)
      i = j;
   else
   {
      level.addPoint (new_x, new_y, POINT_TYPE_ANCHOR);
      i = level.points_num-1;
   }

   level.addLink (&level.points[index], &level.points[i], link_type);

   if (grade > 1)
      DrawTree_stage (level, grade-1, length/2, angle, i, new_x, new_y, rotation);

   // right branch
   new_x = x + cos(rotation - angle) * length;
   new_y = y + sin(rotation - angle) * length;

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

   if (found)
      i = j;
   else
   {
      level.addPoint (new_x, new_y, POINT_TYPE_ANCHOR);
      i = level.points_num-1;
   }

   level.addLink (&level.points[index], &level.points[i], link_type);

   if (grade > 1)
      DrawTree_stage (level, grade-1, length/2, angle, i, new_x, new_y, rotation - angle);
}

void DrawTree (int grade, float length, float angle)
{
   ARLevel level;
   level.Init ();
   level.loadLevel ("blank.lvl");
   // blank is empty level

   int link_type;
   float x,y;

   link_type = LINK_TYPE_BAR;
   x = 0;
   y = 0;

   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);

   DrawTree_stage (level, grade, length/2, angle, 1, x,y+length, D3DX_PI/2);

   level.saveLevel ("Tree.lvl");
}

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 Teh Flan » Sat Jul 28, 2007 12:08 am

gamma57 wrote:Sweet. Fractal Madness!

I think a Cantor Dust plinko type game would be funny.

i made a plinko-like lvl if you want it :D
Teh Flan
 
Posts: 40
Joined: Mon May 28, 2007 9:12 pm
Location: LA

Postby scimaster » Sat Jul 28, 2007 1:06 am

SHURE!!
Code: Select all
ww@localhost:echo $name

"\  /\  /  /\   |--  |--  |=   |\  |"
" \/  \/  /- \  |    |    |--  |  \|"

Done

ww@localhost:


http://www.freewebs.com/scimaster
User avatar
scimaster
 
Posts: 212
Joined: Wed Apr 25, 2007 2:00 am
Location: CA, MN

Postby scimaster » Sat Jul 28, 2007 1:54 am

Here is a plinko level I made.
Attachments
plinko.lvl
(7.06 KiB) Downloaded 219 times
Code: Select all
ww@localhost:echo $name

"\  /\  /  /\   |--  |--  |=   |\  |"
" \/  \/  /- \  |    |    |--  |  \|"

Done

ww@localhost:


http://www.freewebs.com/scimaster
User avatar
scimaster
 
Posts: 212
Joined: Wed Apr 25, 2007 2:00 am
Location: CA, MN

Postby DrRoy » Sat Jul 28, 2007 10:38 am

8 items & $66 left :)

ЗЫ. Коля, ты ЖЛОБ!!!
Почему так мало денег дал???????
Или можно с отрицаловкой закончить?
User avatar
DrRoy
Contest Legend
Contest Legend
 
Posts: 77
Joined: Sun Oct 22, 2006 7:11 pm
Location: Ukraine

Postby NickyNick » Sat Jul 28, 2007 10:48 am

DrRoy wrote:ЗЫ. Коля, ты ЖЛОБ!!!
Почему так мало денег дал???????

Я не жлоб :) Просто я хочу, чтобы главным было не время (настроил кучу всего, разломал все подряд и скорей, скорей к выходу), а именно очки - штоп не так легко было 27 достичь :mrgreen:
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 NickyNick » Sat Jul 28, 2007 10:51 am

DrRoy wrote:Или можно с отрицаловкой закончить?

It is not allowed to spend more than 3000$.
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 ioncorpse » Sat Jul 28, 2007 4:44 pm

Все равно жлоб :D :D

Don't even tried to finish this level.
Hard level = a lot of time = few competitors, medium level = much more competitors = alomost perfect solutions..... and so on.
Feel the Power of the Dark Side.
User avatar
ioncorpse
Champion of Darkness
Champion of Darkness
 
Posts: 1422
Joined: Wed Sep 27, 2006 5:57 pm
Location: Russia

Postby NickyNick » Sat Jul 28, 2007 5:59 pm

Well, I've tried to solve the level with 3000$ and it is really damn hard... :oops: :oops:
So, you can spend any amount of money! Woo hoo :D
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 Overlord » Sat Jul 28, 2007 6:42 pm

Woo Hoo! Now I can participate!
All ARFC A contests and solutions 1st-255th: viewtopic.php?f=6&t=2245
A tool to copy .lvl2 files to \Levels dir when opened: viewtopic.php?f=6&t=2374
User avatar
Overlord
Contest Veteran
Contest Veteran
 
Posts: 570
Joined: Thu Jan 18, 2007 5:21 am
Location: Latvia

Postby McGinge » Sat Jul 28, 2007 9:33 pm

So you are telling us that altho you have set a budget of 3000, we can spend as much as we want??
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 TomHD » Sun Jul 29, 2007 2:12 pm

3+- And thats without finishing
User avatar
TomHD
 
Posts: 43
Joined: Mon Apr 09, 2007 1:40 pm

Next

Return to "C" league

Who is online

Users browsing this forum: No registered users and 13 guests

cron