Thread: Anybody up for a game?

  1. #16
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    *shrug*

    I'm in; it sounds like fun, but I do have some suggestions.

    Let's start small; all the way around. We have several people who've joined. Let's start a simple first attempt with those guys and a simple project. Actually playing the game will attract more attention than just talking about it. While playing the first game, rotating off a list unless someone hasn't posted within 24 hours where upon that name is skipped, people can sign up for the next round.

    Let's start with a profile. For example, a great C++ jumping off would be something like what I've posted here. It covers a lot of ground fast.

    Start a new post noting that round one has started with the rotation list. If the discussion goes on to long, the interest will drop to those who've not bothered to follow everything.

    Code:
    #include <algorithm>
    #include <cmath>
    #include <cstdlib>
    #include <fstream>
    #include <iostream>
    #include <sstream>
    #include <string>
    
    int main
    (
        int argc
      , char ** argv
    )
    {
        return(0);
    }



    sorting is always classic (especially if you don't say which algo in advance)
    If this is done in C++, this may be perfect.

    Compute word frequencies in a file, output sorted list.
    My vote is for this; at least, for a first attempt.

    Compute word to document associations in a directory of files (inverted index)
    This can't be done without stepping outside of C++ standard libraries unless a list of files is provided.




    An addition may only be appended to the source code; changing is not allowed.
    We will never be able to fix broken code; one bad addition destroys the game. It doesn't have to be a logic bug to break source you know.

    The use of the "comma operator" is forbidden. Comma's are allowed of course in function definitions, function calls and to declare more than one variable on a single line.
    We can police ourselves easier without fine grained rules like that. We all know what one statement means; we don't need to get complicated. For example, if I start a statement with any expression evaluating to an `lvalue', I can chain any number of expressions using the logic operators by forcing those expressions to evaluate to a value.

    So, let's just stick with "one simple/complex statement", accounting for the constructs necessary to do something useful with control constructs in one shot instead of three. Also, if you don't allow some complex additions, initializing some variables is right out.

    Comments are not allowed, nor is communicating the purpose of certain additions in any other method to the other participants.
    Okay, so no one will follow my code if I don't want them to follow it. I'm out.

    Is that seriously what you want? Again, one participant has a bad day and garages the game just because he is cranky making the addition as convoluted as possible?

    How about "self describing code only" or "consider changing the addition if a comment would be necessary".

    Macro's are not allowed.
    That's silly. If you consider that creating a macro would take multiple expressions, no one could game that path, and using the macro would also count towards the "one simple/complex statement" rule.

    At every addition, one may also add a single "#include" statement any place in the code.
    That's actually not bad, but I think if we stick to the standard library and other rules simply allowing free additions to the include list is fine.

    Any person making an addition that makes it impossible to successfully complete the application because of a logic error, the person loses and no longer participates; the application is restored to the version before his last change and the game continues. Syntax errors are exempted from this for typo's and the like.
    Again, not a bad rule, but I don't want to play that kind of game, and with the above referenced "no communication" rule I can force most people following me to lose.

    If we our going to play something like this, can't we just have a little fun with it?




    Why not? Isn't this standard compliant?
    That code can compile, but why impose such bad design decisions?

    It also prevents a lot of class and template conventions.

    Soma

  2. #17
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    cout << "Ok guys, the next few lines should recursively call the aggregation function while accumulating the total in the variable 'total'. Don't forget to check the base case of an empty structure and initialize the memory for the return data\n";

  3. #18
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    I don't see the point of only appending to the code. It would be more fun (and easier to fix mistakes) if we can only insert new lines (anywhere) but not edit or delete lines.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  4. #19
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    It it just more challenging if you just can append. And simpler/quicker.
    But I agree on starting this already.

  5. #20
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,608
    I'm out. Those rules ensure failure. If that is the point of the the program then you do not even need to start to prove it is not going to end well.

  6. #21
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    *shrug*

    Okay, let's just try this once or twice. Talking it to death is wasting time.

    Yo, VirtualAce, or some other moderator, I screwed up in a few places. Can someone please add a link to the planning thread, as below, to the first round thread, drop the "(Community Game)" from the planning thread, and add my name to the game thread contributor list?

    [Edit]
    I finally got the edit option to work and made some of the changes myself. The only thing left is removing "(Community Game)" from the planning thread.
    [/Edit]

    Soma

    http://cboard.cprogramming.com/gener...und-01%5D.html

    http://cboard.cprogramming.com/gener...und-02%5D.html
    Last edited by phantomotap; 04-17-2011 at 02:49 PM. Reason: none of your business

  7. #22
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Quote Originally Posted by VirtualAce View Post
    I'm out. Those rules ensure failure. If that is the point of the the program then you do not even need to start to prove it is not going to end well.
    I posted these rules so that people would comment on it so that we could improve it. It was a proposal. Rather than saying "no, they suck, I'm out" you could say what you don't like so that it can be worked on.

    Phantomotap; I'm quite happy you started it, I've been too busy the last couple of days to start it. But I do believe the rules aren't quite clear yet. Well, read my post in the other thread for the most important thing: I think it's no fun unless you can only add to the bottom. Of course corrections are different and can be done anywhere, but additions definitely shouldn't.

  8. #23
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,608
    Rather than saying "no, they suck, I'm out" you could say what you don't like so that it can be worked on.
    If you will carefully review my post you will find that I did not use any of those words. I merely stated I'm not going to contribute and gave my reasons for it. I do not have time to waste on various projects that I feel, for one reason or another, are DOA from the word go. I feel you have limited the success of the project by creating rules that are more for an obfuscated code contest than a group programming project. But perhaps I misunderstood the point of the project in the first place.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Should I use a game engine in making a RPG game?
    By m3rk in forum Game Programming
    Replies: 6
    Last Post: 01-26-2009, 04:58 AM
  2. Guessing game: how to quit the game?
    By hzr in forum C Programming
    Replies: 5
    Last Post: 12-18-2008, 10:53 AM
  3. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 07:58 PM
  4. Game Designer vs Game Programmer
    By the dead tree in forum Game Programming
    Replies: 8
    Last Post: 04-28-2005, 09:17 PM
  5. Game Designer vs Game Programmer
    By the dead tree in forum General Discussions
    Replies: 2
    Last Post: 04-27-2005, 03:50 AM