PDA

View Full Version : Sign Up!: The Third Round, both contests



Pages : [1] 2

ygfperson
06-28-2002, 03:10 PM
NOTE: this thread is signup for both contests. specify which one(s) you want to sign up for.

The *easy* contest
Contest theme: A bitwise calculator
Directions:Using your own wits and standard portable function calls, write a function that acts like a regular four-function calculator. The function will look like:

void calc_func(char* input,int& total);

It will accept an input string whick looks something like this: "+ 3" or "/ 5", etc...
The program will do what the input string says on integer total. You will only be working with integers, signed and unsigned. Here's the catch: all arithmetic must be done using the 4 bitwise operators: xor, or, and, not.
Time limit: Around one week. Submit your entry to me at geoschnee2@thetruth.com by midnight between July 8 and July 9. The deadline's flexible within a few hours or to time zone differences.
Standard Criteria:
effciency -- make your program lean and mean
elegance -- make your source code neat and logically flowing. (Don't forget to indent.)
portability -- make it reasonably portable.
Specialized Criteria:
none.
Extras:
plus 3 points (the equivalent of +1 point in each category) if it works with floating point numbers. (you can change the function name to fit floats).

Signed up Contestants: 8 slots left
*ClownPimp*
Dual-Catfish

Signed up Judges: all slots filled
ygfperson
Prelude
ABCGum
Govtcheez

Contestant's Entries confirmed:

If you want to judge or be a contestant respond to this thread.

Hints:
Search google.com for hints on how to add, subtract, multiply, and divide using bitwise operators.
Remember: there are standard functions that can convert a number in a string into an integer. Make your life much easier by using them.

Note: all source code submitted will be posted in public view. It is assumed your program isn't copyrighted or anything like that.



The {HARD} contest
Contest theme: Fractal Maker (unless the poll changes sides suddenly).
Directions: Write a C or C++ function which draws a fractal image onto a raw image (a char array). The function name will be: "frac_draw(raw_image& x);". raw_image is a structure which contains only a 2D array of chars, 200x200. (The size is still under debate.) It should look something like this:


struct raw_image {
unsigned char array[200][200];
};
You can safely assume that memory for this struct is already allocated, but the values won't be initialized. Each char contains a value 0-255, where each one represents a grayscale value, 0 being darkest.
Time limit: at least 10 days. If more time is needed, it will be extended to 3 weeks, or 21 days. The final deadline will be edited in later.
Criteria:
speed -- self-explanitory
efficiency -- make your program lean and mean
elegance -- make your source code neat and logically flowing
portability -- make it reasonably portable
Specialized Criteria:
beauty -- obviously this isn't an objective opinion. Maybe I'll do a poll after everythings done to get a consensus.
complexity -- the more complex, the better (without a significant slowdown in speed)
flexibility -- the ability to do different kinds of fractals

Signed up Contestants: 6 slots left
Prelude
QuestionC
*ClownPimp*
Dual-Catfish

Signed up Judges: 3 slots left
ygfperson

Contestants whose entries have been confirmed:

If you want to be a judge or a contestant sign up below (and remember to specify which contest you're entering or judging.)

Note: all source code submitted will be posted in public view. It is assumed your program isn't copyrighted or anything like that.

Hint: http://ejad.best.vwh.net/java/fractals/intro.shtml
Look here for some beginning hints. (uses Java, btw.)

Here's how the point system works:
1) the various judges decide each category on a 5 point scale, 5 being best, 1 being worst, and 0 if that feature doesn't exist.
2) they submit to me their opinions and scores. I also add my scores and opinions.
3) creativity will count twice, and extra points will be added for ASCII compatability.
4) for each judge, their scores will be averaged together to a general 5 point scale.
5) i then average the general scores of the judges for each entry together, for one general score for each entry.
6) i simply compare the points. The higher one wins.
7) i post all opinions, scores of each judge, code of participants, and some congradulations to the winner.

Any complaints may be filed with the Internet Forum Subjection Board under a revised provision of the Internet Law. Complaints will be meticuously verified and dealt with as time allows.

Fortunately for me, such a body does not exist. :D

And above all, make sure your program works... :)

There it is. Sign up before the slots are filled! (hehe... i know that's a fat chance)
People may sign up for either one, or both. Don't forget, we need judges too!

ygfperson
06-28-2002, 03:17 PM
can someone sticky this thread, please?

ygfperson
06-28-2002, 08:12 PM
any questions?

Prelude
06-28-2002, 08:35 PM
>any questions?
For the hard contest, are we required to only use one function or can there be helpers to make the code neater? I already have a (really)crappy entry written, but I may have some time to work on it more thoroughly before the deadline. If you get a wimpy fractal generator from me don't be surprised though. :rolleyes:

And I'll judge the easy contest.

-Prelude

ygfperson
06-28-2002, 09:35 PM
for each contest you absolutely need the function mentioned. you cannot have a main function. i'll create a rudimentary main function, and plug in each entry to make a program. other than that, it's open season. make as many functions as you want.

QuestionC
06-28-2002, 10:59 PM
I'll join the hard contest, although I'm really in the same boat as Prelude here.

ygfperson
06-29-2002, 02:37 PM
don't worry about the difficulty of the contests. remember, you're going against each other, not some programming god with a scanf in his eyes and for loops in his brain. your entries will be equally crappy. :D ;)

Prelude
06-29-2002, 08:14 PM
>don't worry about the difficulty of the contests.
Not overly difficult, just time consuming if you want to do a good job.

>remember, you're going against each other, not some
>programming god with a scanf in his eyes and for loops in his brain.
[ego trip]
You mean her. :D:D
[/ego trip]

>your entries will be equally crappy.
I'm inclined to agree.

-Prelude

ABCGum
06-29-2002, 10:17 PM
hmm, is it too late to be a judge?

ygfperson
06-29-2002, 10:51 PM
no. there's still plenty of time left. but first:
1) which contest do you want to judge?
2) are you talented enough to judge?

ABCGum
06-29-2002, 10:53 PM
1)Easy Contest :cool:

2)hmm, i guess, anything i need? :)

vasanth
06-30-2002, 06:06 AM
well guys .. i dont think i will be entering to any of the contests. My hard disk has crashed and i am waiting for a replacement... I am now workin from my friends laptop.. See u any way for the next contetst......

QuestionC
06-30-2002, 10:44 AM
Hmm.. I have a few things to point out here...

1)
remember, you're going against each other, not some programming god with a scanf in his eyes and for loops in his brainYou're clearly underestimating at least one of us here :).

2)
struct raw_image {
unsigned char array[200][200];
};

void frac_draw(raw_image x);Umm, this might just be a little detail, but we need to pass the raw image by reference.

3) I don't suppose we could go for a higher resolution than 200x200? My fractals are looking kinda.... lumpy.

Sebastiani
06-30-2002, 04:15 PM
Hmm, the fractal contest looks intriguing. I must pass though, since I haven't read up much on the basics. Besides, kind of busy right now. Ah well...good luck everyone.

ygfperson
06-30-2002, 04:27 PM
yes, you're right. it should be by reference. i'll change that in a minute.

AbcGum: just your e-mail, but i'll ask for it later. look through the last contest to see how that was judged, so you get an idea on what we're looking for.

vasanth: dang.. that hurts. hope you backed up everything.

QuestionC: yes, i know who i'm underestimating. ;)

to everyone: do you think 200x200 is too low? want to go higher?

ABCGum
06-30-2002, 05:11 PM
ya i think i knowhow to judge, and one more thing, how do i edit my profile

Hammer
06-30-2002, 05:14 PM
Originally posted by ABCGum
ya i think i knowhow to judge, and one more thing, how do i edit my profile
There's a button with "user cp" on it (top of the page).

Govtcheez
07-01-2002, 08:31 AM
I'll judge

ygfperson
07-01-2002, 09:08 AM
which contest?

Govtcheez
07-01-2002, 09:16 AM
Hmm... The easy one, I guess.

ygfperson
07-01-2002, 09:31 AM
note to judges: i may change the topic of the easy contest to an easier one. (either bitwise calculator or slot machine). it's not a good sign when there's nary a contestant and 4 judges.

ABCGum
07-01-2002, 02:06 PM
ok, thats a good idea

ygfperson
07-01-2002, 03:33 PM
the easy contest is now a bitwise calculator. (a calculator done entirely with nots, ands, ors, and logical xors.

*ClownPimp*
07-02-2002, 02:17 AM
im on vacation and have been trying to find something to occupy my time, so I guess Ill sign up for both. although dont be surprised if I dont get anything finished for the hard one since I know absolutely nothing about fractals

ygfperson
07-02-2002, 09:16 AM
k. there's no obligation to submit anything

//edit: well... there is an obligation,technically, but there's no requirement.

Xmevs
07-02-2002, 01:57 PM
I can be a judge in the easy one.

ygfperson
07-02-2002, 04:33 PM
sorry, that slot's filled.

how about being a contestant? :D

Xmevs
07-03-2002, 09:40 AM
Nah... don't feel like it... I have too much to do at the moment... maybe next time...

Dual-Catfish
07-03-2002, 10:02 AM
Hrm, sign me up for both!

ygfperson
07-03-2002, 12:44 PM
regarding the size of the raw_image, i guess it doesn't hurt to be flexible to bigger sizes. if you want, do any square array up to 800x800. or stick to 200x200 if that's what you prefer.

Prelude
07-03-2002, 12:49 PM
I haven't had any problems with 200x200 so far. Does this mean that we should define the struct as well? Originally you implied that it would be defined for us already.

-Prelude

ygfperson
07-03-2002, 01:30 PM
no, the struct doesn't need to be defined by you. i'm just letting people know that if they want to they can go over 200x200 (as long as it's a square matrix) and i'll adjust the struct accordingly.

Dual-Catfish
07-03-2002, 02:39 PM
For the bitwise calculator, can there be more than one operation in a given string? For example, "/ 2 * 7" or "/ 32 * 234 + 2"

ygfperson
07-03-2002, 09:15 PM
Originally posted by Dual-Catfish
For the bitwise calculator, can there be more than one operation in a given string? For example, "/ 2 * 7" or "/ 32 * 234 + 2"
no, only one operation per string. the main program will iterate through an array of strings to get the desired result. the function just works on the one operation.

ABCGum
07-06-2002, 09:11 PM
hey, when will the contest be like over, ,or when it is like closed, here is my email E-Mail (bb5206@aol.com) :D

ygfperson
07-06-2002, 11:05 PM
it should be listen when the easy contest closes. (sometime mid-week, i think). the hard contest goes on for at least that long and can be extended if needed.

ABCGum
07-06-2002, 11:10 PM
oops, sry, ok, so in a few days

vasanth
07-07-2002, 03:51 AM
Well i am waitin for the next contest

ABCGum
07-07-2002, 02:43 PM
ooh ya

ygfperson
07-08-2002, 07:34 PM
the easy contest ends tonight. if you're submitting, be sure to do it by then.

Dual-Catfish
07-08-2002, 09:30 PM
I didn't finish the * and /, I was too busy exploring Linux :)
Ah well.. now to submit my half-assed entry.

ygfperson
07-09-2002, 06:07 AM
both easy contest entries are confirmed. received Prelude's hard contest entry, too.

ygfperson
07-09-2002, 06:42 AM
to ABCGum: i need your e-mail address. i already have prelude's and govtcheez's.

to all easy contest judges: i'll send you both entries. for each category, elegance, efficiency, and portability, grade each entry on a 5 point scale, 5 being the best possible. put a zero for a lack of feature, though that shouldn't apply to this contest with no specialized criteria. also put whatever comments you desire into it. i'll take your input, add mine, average it, and give the final result on a thread sometime early this week.

to hard contest contestants: how many of you want the deadline extended?

ABCGum
07-09-2002, 09:11 AM
my email address bb5206@aol.com

ygfperson
07-09-2002, 09:33 AM
i have sent all the judges the entries in the easy contest.

attached are some example fractal pics, for anyone interested (from prelude's entry, displayed via SDL, then screenshotted, then saved as PNG files)

ABCGum
07-09-2002, 09:38 AM
Ygf, do i need a program to open those?

ygfperson
07-09-2002, 04:04 PM
your web browser should do, if you mean the png images
if not that, i'm not sure what you mean

ABCGum
07-09-2002, 04:05 PM
ya the .png images

ygfperson
07-09-2002, 11:11 PM
to all hard contest members except prelude:
do you want more time? as it stands now the deadline is thursday midnight.

QuestionC
07-11-2002, 02:38 PM
Sorry, I've been out of town for a week, vacationing after finals. :)

I won't be able to get my program to a computer w/ internet untill tomorrow, so a little extension if you don't mind.