Thread: codes

  1. #16
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Quote Originally Posted by Govtcheez
    There's only one B A? That's a little disappointing. I've been remembering it wrong this whole time.

    Paul, I'm ashamed in you.
    I always remembered that code coming from Contra on the NES. There might have been a similar one for Super Contra/Contra 2 but I can't remember.

    I also don't know what the trendy vintage shirt sold at hot topic and other places had for that code(there was a shirt with that code printed on the front).

    I remember few codes from games. I remember how to do the infinite guy trick in Mario Brothers 1 on stage 3-1 but you can only do it on the exact and original NES catridge-based data(weather the new versions are NES emulations are not might prove this). The Mario 1 featured in Mario All Stars was so not even close. The bug doesn't work.

    Hacks are a lot more fun for me. I like the Rainbow Set hacks for Street Fighter 2's original arcade engine(The World Warrior, Champion Edition and Hyper Fighting). That was crazy stuff. Air moves for everyone. 12 fireballs on the screen at once and morphing into anyone you want VIA cycling through the cast with the start button.
    The world is waiting. I must leave you now.

  2. #17
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    > I also don't know what the trendy vintage shirt sold at hot topic and other places had for that code(there was a shirt with that code printed on the front).

    Yeah, I've seen that too.

    To be fair, I never actually owned a Nintendo.

  3. #18
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Quote Originally Posted by Govtcheez
    > I also don't know what the trendy vintage shirt sold at hot topic and other places had for that code(there was a shirt with that code printed on the front).

    Yeah, I've seen that too.

    To be fair, I never actually owned a Nintendo.
    I have 2. The original front loader and rare top loader.
    The world is waiting. I must leave you now.

  4. #19
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Favorite code: DOWN, RIGHT, LEFT, DOWN, DOWN, RIGHT, "When it is." This was to create a super team in Baseball Stars for Nintendo.

    For the original question, aren't you guys being a little harsh? I can count the numerous grammar mistakes all of you have made while complaining about this one mistake. Also, for the many of non-english speakers and young native speakers this is an extremely easy error to make considering A) Most synonyms for code in this case WOULD be pluralized (ie programS) but also B) the word "code" is pluralized in many other instances (ie cheat codeS).

  5. #20
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    Code:
    aren't you guys being a little harsh
    We are if it's an honest mistake. But personally I think they do it on purpose. If u no wat I mean.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  6. #21
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Considering most bad writing on the internet comes from trying to type the least amount of letters and remain legible, I doubt they'll go out of their way to type that extra letter just to annoy you

  7. #22
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    I like the errors found here: http://engrish.com
    The world is waiting. I must leave you now.

  8. #23
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    Ok, I have a question for PJYelton.

    About somes codes that I wrote.

    No joke. I am currently wasting time writing a connect four game, and I have run into a problem, and I figure you're the guy to ask since you won the C4 tournament some time back.
    The game is pretty far along. It plays pretty well. I have an MFC GUI for it. Right now it only plays the black pieces (moves second). I implemented using minimax & alpha-beta pruning. My board representation uses bitboards.

    Here is the problem: It plays best when I set the depth to 1. The larger I set the search depth to, the worse it plays. I'm not sure how to account for this. I'm fairly certain that the minimax/alphabeta algorithm is correct.

    Any ideas?
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  9. #24
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    I wouldn't think it would play well at all at only a depth of 1. Typically all it can do by looking one move ahead is make an immediate win or block an immediate loss. If you think the evaluation function works fine my best guess would be you aren't undoing the moves properly when you move up a recursive level. Tough to say though without seeing code.

  10. #25
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    Well...

    I'm working on it at the minute. Not sure about the evaluation function entirely but so far I've found two bugs. They are related to implicit type conversions. You see, the bitboards are 64 bit ints (__int64 type), and so I get these types of problems:

    Code:
    bool game_state::min_occupies(int column, int row) const
    {
    # if OLD_BROKEN_CODE
            int n  = (row * 8) + column;
            return (min_ & (1<<n)) != 0;
    # else
    	int n = (row * 8) + column;
    	bitboard_t shl = 1;
    	shl <<= n;
    	bitboard_t res = min_ & shl;
    	return res != 0;
    # endif
    }
    So what happens in the broken code is that (1<<n) gets converted to a 32 bit integer type (native size for my processor), and an overflow occurs, so min_ & 0 == 0, etc. This wasn't the only case of this stuff. It's all over the place, and not exactly easy to spot.

    Anyway, there are probably other problems as well...
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  11. #26
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    But I would like to challenge your engine when I am finished. If that is somehow possible.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  12. #27
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    I swear that NES code is up-up-down-down-left-right-left-right-B-A-B-A-start (or select start for two players.)
    I don't have Contra anymore, but I think a friend does; I'll have him check it. IIRC, it works for pretty much every Konami game for the NES.
    There is a difference between tedious and difficult.

  13. #28
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    I have gained a new appriciation of assert(). I think I've found all the bugs; I can't beat my program anymore. Actually it kicks my butt every single time. I have the search depth at 7. And I haven't even added a heuristic for ordering the candidate moves, which is supposed to make alpha-beta perform much faster. I'm afraid to see what will happen if I can speed it up and set the search depth even larger. Stay tuned for progress on my codes.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  14. #29
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Quote Originally Posted by Decrypt
    I swear that NES code is up-up-down-down-left-right-left-right-B-A-B-A-start (or select start for two players.)
    I don't have Contra anymore, but I think a friend does; I'll have him check it. IIRC, it works for pretty much every Konami game for the NES.
    THANK YOU

    And likewise, I'm 99% positive it's either 99 or 90 guys, not 30.

  15. #30
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    well, from searching, I find Shadow's results ALOT more, but I did find govt's results, always alongside Shadow's... my conclusion: You're both right, but govt's is the lesser-known (or doesn't work in all versions of the game:

    http://www.gamewinners.com/nes/Contra.htm
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 07-12-2005, 09:03 PM
  2. action replay codes
    By c++.prog.newbie in forum Game Programming
    Replies: 2
    Last Post: 02-28-2004, 08:47 AM
  3. Key codes...
    By Supar in forum C++ Programming
    Replies: 3
    Last Post: 03-18-2003, 08:48 PM
  4. anyone have linked-list sample codes?
    By ling in forum C++ Programming
    Replies: 3
    Last Post: 07-03-2002, 02:24 PM