Boardgames Onlie Beta

This is a discussion on Boardgames Onlie Beta within the Game Programming forums, part of the General Programming Boards category; I finished the beta version of Boardgames Online. I would appreciate any comments on my work. Found here...

  1. #1
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853

    Boardgames Onlie Beta

    I finished the beta version of Boardgames Online. I would appreciate any comments on my work.

    Found here

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    266
    you have a 200 kilobyte source file

  3. #3
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Do you imply that it is too big? It is 5k lines of code... Except if you are on dial-up, which then I pity you (though I am in the second worst situation)

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    266
    I think its a better habit to organize your code much better

    though of course its hard to accept this fact since you yourself wrote it and understand it fully...try to abstract it more , detach anything having to do with chess from the main code

  5. #5
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    I can see why one file is convenient - that's one file to download for the source. But it would be better to distribute the source in a zip file, and have a file for, say, each class.

    EDIT: And a project file/makefile.

    But I really like the idea of describing where the players go:
    //a) UseTableCoord: each player is sitting around a square table (up to 4 players)
    // This option is helpful for games that each player has a side, like chess and checkers or most card games
    //b) TableHands: each card hand is placed on the bottom of the screen and has the appropriate color
    // Used only when each player has a hand
    Also I am wondering if you have implemented describing game rules yet - I didn't see any in the example. I am sure it will be interesting to see finished. Maybe a
    Code:
    //poker game
    WinningHand pair = new WinningHand(new PointsValue(20), new CardSet(5,CARD_N_A, CARD_N_A, CARD_ANY, CARD_ANY, CARD_ANY));
    //CARD_N_A signifies a card of any face value (a count of 2 means at least two values must match)
    WinningHand fullhouse = new WinningHand(new PointsValue(100), new CardSet(5,CARD_N_A, CARD_N_A, CARD_N_A, CARD_N_B, CARD_N_B));
    //and since fullhouse has the higher points value it takes precedence
    Forgive me if you already had it done, I'm just going out on a whim here. The class names could probably use some work. And I don't even know if my idea is practical - heck, I don't even know C# - so take it for face value (no pun intended).
    Consider this post signed

  6. #6
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Maybe I ll go with the many file approach. The makefile is good, but don't really know hot to make one in C#. I will get to it though.

    Game rules are not really needed, in the sense that the game doesn't "force" any rules. For poker, you just show your cards and the winning player would get the chips from the table.

    As for code organization, yeah. It needs better organization and name changes. I am just kind of lazy on that, cause I am more interested.

    ChessBoard and ClassicDeck should probably be on another file.

    But I will probably end up doing these changes after I finish the rest of ideas I have on this program so I can enable more boar games to be created...

  7. #7
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    For poker, you just show your cards and the winning player would get the chips from the table.
    So there's a dealer involved or at least some sort of player consensus as to who the winner is?

    EDIT: Oh, I think I get it now - this isn't necessarily a video game in itself, just more of a natural online extension of real people getting around a table and playing cards.
    Last edited by bernt; 05-19-2010 at 04:00 PM.
    Consider this post signed

  8. #8
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Quote Originally Posted by bernt View Post
    So there's a dealer involved or at least some sort of player consensus as to who the winner is?

    EDIT: Oh, I think I get it now - this isn't necessarily a video game in itself, just more of a natural online extension of real people getting around a table and playing cards.
    Exactly! Not meant for tournament games or having an AI. This way also you don't need to change the rules when you want to play a bit differently.

    I really prefer my approach in the sense that I have seen some similar software that had just too many options in my opinion. Where in real life you play "freely" anyway. Of course, you can add some rules, the delagates make that really easy. Mostly to determine things like turn order, starting/end phases. More rules would require more complex changes

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 7 RC, Visual Studio 2010 Beta, Office 2010 beta, anyone in?
    By indigo0086 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 05-20-2009, 02:57 PM
  2. Beta version compiled with -DWINVER=0x0500
    By wow in forum Windows Programming
    Replies: 3
    Last Post: 03-20-2006, 07:35 AM
  3. MS Visual Studio .NET 2005 beta 1
    By Vader in forum C++ Programming
    Replies: 8
    Last Post: 09-21-2004, 08:14 PM
  4. Natrual Language Programming - Beta Release
    By andy668 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-16-2002, 01:24 AM
  5. Visual Studio .NET beta 2
    By Marky_Mark in forum C++ Programming
    Replies: 1
    Last Post: 11-05-2001, 11:28 AM

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