Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » MinorHack Attack!

This thread is locked; no one can reply to it. rss feed Print
MinorHack Attack!
CGamesPlay
Member #2,559
July 2002
avatar

Well, I finally got around to making a decent MinorHack website. For those of you who don't remember, the first thread is here. The difference between the old one and this one is that now there is a rule-o-matic. 1 rule is arbitrarily selected to govern entries.

Anyways, I want to run a few of these. I want to do 2 this weekend, and I'm hoping, if I can get enough interest, that I can get one in today also. Anybody up for it? Give me times, and I will schedule it!

Also, spend some time at the site and add a few rules. We need rules to get the competition interesting!

[edit]
Current competition is scheduled for 2100 GMT on September 3.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Onewing
Member #6,152
August 2005
avatar

Quote:

I'm currently thinking 6 hours for the competition

Do you mean "have a competition in 6 hours" or "competition will be 6 hours long"?

Anyway, I'm hosed today/tonight, but I'd be open for doing them this weekend any time. Whoo-hoo, 4-day weekend!

------------
Solo-Games.org | My Tech Blog: The Digital Helm

CGamesPlay
Member #2,559
July 2002
avatar

I mean it would be 1 hour long, and start at 6 p.m. EDT :)

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Krzysztof Kluczek
Member #4,191
January 2004
avatar

It would be nice if the site allowed every entrant to start when he wants to. :) Once logged in, he would have option "enter the compo" for every compo that's open at the moment, which would give him access to the rules, but at the same time it would start the countdown and close submission for him after 60 minutes. :)

CGamesPlay
Member #2,559
July 2002
avatar

Quote:

Once logged in, he would have option "enter the compo" for every compo that's open at the moment, which would give him access to the rules, but at the same time it would start the countdown and close submission for him after 60 minutes. :)

Yeah, but that takes the social aspect out of it :) Plus it allows cheating. Not that we really care about that ::)

Okay, let's get some more rules in the system, okay?

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Krzysztof Kluczek
Member #4,191
January 2004
avatar

Quote:

Okay, let's get some more rules in the system, okay?

Okay, I've added a bunch. I may add something more later, when I'll have some more ideas. :)

Derezo
Member #1,666
April 2001
avatar

I'd like to on Sunday night or something, but I wouldn't be able to tonight. I need more notice! :P

"He who controls the stuffing controls the Universe"

gnolam
Member #2,030
March 2002
avatar

Eh. Too short to produce anything meaningful.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

miran
Member #2,407
June 2002

Quote:

Eh. Too short to produce anything meaningful.

How about 72 hours? No, wait.... :-X

--
sig used to be here

BAF
Member #2,981
December 2002
avatar

Hey, I wrote one of my "best" games during the last one... a simple snake game. Most of my games I have the problem of overengineering, but with 1 hour, I just hacked up whatever works.

CursedTyrant
Member #7,080
April 2006
avatar

I don't think I'm good enough to hack something in one hour :P

---------
Signature.
----
[My Website] | [My YouTube Channel]

Jonatan Hedborg
Member #4,886
July 2004
avatar

If this happens, i think I'll give it a shot.

-------
Sweden: Free from the shackles of Democracy since 2008-06-18!

CursedTyrant
Member #7,080
April 2006
avatar

OTOH, I enjoy a good challenge every now and then ;D

---------
Signature.
----
[My Website] | [My YouTube Channel]

CGamesPlay
Member #2,559
July 2002
avatar

What times, guys? Sunday at 2100 GMT sound good? Anyone else?

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Onewing
Member #6,152
August 2005
avatar

Hmmm...on the Rules section of your site, I don't see any rules. Or...has none been approved yet? Browser: Opera.

------------
Solo-Games.org | My Tech Blog: The Digital Helm

CGamesPlay
Member #2,559
July 2002
avatar

At the time that you posted (and now), there are 14 rules. If you can't see them, try the xml.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Onewing
Member #6,152
August 2005
avatar

I can see the rules in the xml, but there all smashed together in one long paragraph.

------------
Solo-Games.org | My Tech Blog: The Digital Helm

CGamesPlay
Member #2,559
July 2002
avatar

Opera sucks :) So what does the rules page look like normally then?

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Onewing
Member #6,152
August 2005
avatar

Quote:

Opera sucks

That's it, I'm going to make my own internet browser and it shall be named: sUcks (Super URL Connecting at Killer Speeds).

Anyway, the rules page looks fine now...odd.

[edit] - Added some really zany rules.

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Jonatan Hedborg
Member #4,886
July 2004
avatar

I just had to write a test-game to see what i could do in one hour. I think it turned out pretty well. The code is horrible, but that is to be expected i guess :)
GAME!
or just the source Sauce!

Download, run, tell me your scores!

-------
Sweden: Free from the shackles of Democracy since 2008-06-18!

miran
Member #2,407
June 2002

Impressive! 3761 after a few tries.

EDIT: 4343!

Btw, you should have limited the placement of the green circles more to the centre of the board. If you get one in one of the corners, you can't even get to it. And you could make a minimum distance from the last green circle, otherwise if you're lucky, you can get three or four in a straight line.

--
sig used to be here

Jonatan Hedborg
Member #4,886
July 2004
avatar

Good point with the corners, didn't think of that.

-------
Sweden: Free from the shackles of Democracy since 2008-06-18!

miran
Member #2,407
June 2002

I put this code in eat_treat() instead of the two lines that calculate the new x/y:

  while (1) {
    newx = (rand()%460)+80;
    newy = (rand()%320)+80;

    if ((treat.x - newx)*(treat.x - newx) + (treat.y - newy)*(treat.y - newy) >= 150*150) {
      treat.x = newx;
      treat.y = newy;
      break;
    }
  }

Got 5758 points the first time. :)

--
sig used to be here

Jonatan Hedborg
Member #4,886
July 2004
avatar

Thanks =)
You could probably have used the "is_overlapping" function to do that.
Also, you can increase/decrease the speed of the snake (with the up/down arrows)

I'll put up an alternate version (over one hour of work) with some updates.

EDIT:
Here is version "2" ("real" version still in the previous post):
GAME!
or just the source Sauce!

-------
Sweden: Free from the shackles of Democracy since 2008-06-18!

CGamesPlay
Member #2,559
July 2002
avatar

So does that mean you're in for this weekend, Jonathan?

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>



Go to: