Sign Up!: The Third Round, both contests

This is a discussion on Sign Up!: The Third Round, both contests within the A Brief History of Cprogramming.com forums, part of the Community Boards category; NOTE: this thread is signup for both contests. specify which one(s) you want to sign up for. The *easy* contest ...

  1. #1
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493

    Sign Up!: The Third Round, both contests

    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:
    Code:
    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:
    Code:
    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.

    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!
    Last edited by ygfperson; 07-03-2002 at 01:42 PM.

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    can someone sticky this thread, please?

  3. #3
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    any questions?

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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.

    And I'll judge the easy contest.

    -Prelude
    My best code is written with the delete key.

  5. #5
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    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.
    Last edited by ygfperson; 06-28-2002 at 10:40 PM.

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    I'll join the hard contest, although I'm really in the same boat as Prelude here.
    Callou collei we'll code the way
    Of prime numbers and pings!

  7. #7
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    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.

  8. #8
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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.
    [/ego trip]

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

    -Prelude
    My best code is written with the delete key.

  9. #9
    Registered User
    Join Date
    Jun 2002
    Posts
    11
    hmm, is it too late to be a judge?
    Sodaplay
    try it!!! you make Sodabots
    talkto me, i am Supa_soaker, on he forum

  10. #10
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    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?

  11. #11
    Registered User
    Join Date
    Jun 2002
    Posts
    11
    1)Easy Contest

    2)hmm, i guess, anything i need?
    Last edited by ABCGum; 06-30-2002 at 12:06 AM.
    Sodaplay
    try it!!! you make Sodabots
    talkto me, i am Supa_soaker, on he forum

  12. #12
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    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......

  13. #13
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    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 brain
    You're clearly underestimating at least one of us here .

    2)
    Code:
    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.
    Callou collei we'll code the way
    Of prime numbers and pings!

  14. #14
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    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.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  15. #15
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    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?
    Last edited by ygfperson; 06-30-2002 at 05:33 PM.

Page 1 of 4 1234 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sign ' is the same as \' ?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 11-23-2007, 07:32 AM
  2. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 04:42 PM
  3. My own itoa()
    By maxorator in forum C++ Programming
    Replies: 18
    Last Post: 10-15-2006, 12:49 PM
  4. Please help with some coding..
    By stehigs321 in forum C Programming
    Replies: 2
    Last Post: 10-27-2003, 06:44 PM
  5. The Third Round of Contests -- submit ideas
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 06-26-2002, 05:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21