Thread: chess

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    196

    chess

    im making a chess game the basic board looks like this

    Code:
     _________________________________
    8|   |   |   |   |   |   |   |   |
    _|________________________________
    7|   |   |   |   |   |   |   |   |
    _|________________________________
    6|   |   |   |   |   |   |   |   |
    _|________________________________
    5|   |   |   |   |   |   |   |   |
    _|________________________________
    4|   |   |   |   |   |   |   |   |
    _|________________________________
    3|   |   |   |   |   |   |   |   |
    _|________________________________
    2|   |   |   |   |   |   |   |   |
    _|________________________________
    1|   |   |   |   |   |   |   |   |
    _|________________________________
     | A | B | C | D | E | F | G | H |
    please if anyone can make on better please tell me anyways i was wondering my basic this is you start the game and


    start game>please choose your move>eg.Rb B4>and how do i make the board show up with that move maid and the comps move made pls tell and if anyone can make a better chess board please show me cause mine is pretty sad


    and the reasin it looks like that were the peices would go is the forums fault
    Last edited by Salem; 12-09-2005 at 02:14 AM. Reason: Oooooohhhhh - pretty code tags - aaaahhhhhh

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    please if anyone can make on better please tell me anyways i was wondering my basic this is you start the game
    Whaaa?

  3. #3
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    I'd say start with an easier program. Chess is generally not a basic program to make.

    In any event, use code tags.
    Sent from my iPadŽ

  4. #4
    Registered User fischerandom's Avatar
    Join Date
    Aug 2005
    Location
    Stockholm
    Posts
    71
    @@+-----------------+ BLACK
    8 | r n b q k b n r |
    7 | p p p p p p p p |
    6 | . . . . . . . . |
    5 | . . . . . . . . |
    4 | . . . . . . . . |
    3 | . . . . . . . . |
    2 | P P P P P P P P |
    1 | R N B Q K B N R |
    @@+-----------------+ WHITE
    @@@@a b c d e f g h

    K = White King.....k = Black King
    Q = White Queen....q = Black Queen
    R = White Rook.....r = Black Rook
    B = White Bishop...b = Black Bishop
    N = White Knight...n = Black Knight
    P = White Pawn.....p = Black Pawn

    Replace all @ with spaces. The server removed spaces that should be there for a reason, sigh!

    Example:
    Fischer - Tal [U.S.S.R.]
    CANDIDATES' TOURNAMENT 1959
    SICILIAN DEFENSE

    @@+-----------------+ TAL
    8 | r n b q k b . r |
    7 | . . . . . p . p |
    6 | p . . p p . . . |
    5 | . . . . . N . . | Position after 12 Nxf5
    4 | N p . . n . . . |
    3 | . B . . . . . . |
    2 | P P P . . . P P |
    1 | R . B Q . R K . |
    @@+-----------------+ FISCHER
    @@@@a b c d e f g h

    12 . . . Rg8
    13 Bd5! . . .

    A shot!
    Last edited by fischerandom; 12-09-2005 at 02:30 AM.
    Bobby Fischer Live Radio Interviews http://home.att.ne.jp/moon/fischer/

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > and the reasin it looks like that were the peices would go is the forums fault
    My guess is if you can't figure out code tags then you might want to hold off on something tricky like chess.

    Especially if you're always going to blame something else for your own ineptitude.

  6. #6
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    whaaa your banned how are you posting

  7. #7
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Omg!!! He Must Be 1337 Hax0rz!

    By the way, fischerandom, cool little thing you got there. Nice way to design a chess board on a program.
    Last edited by SlyMaelstrom; 12-09-2005 at 01:20 PM.
    Sent from my iPadŽ

  8. #8
    Registered User fischerandom's Avatar
    Join Date
    Aug 2005
    Location
    Stockholm
    Posts
    71
    Thank you SlyMaelstrom. If wanting a simple ASCII-symbol based chessboard, its ok, but not good. To just get started with some output of a chessboard without having a GUI ready I could live with it. I didn't know I was banned?
    Bobby Fischer Live Radio Interviews http://home.att.ne.jp/moon/fischer/

  9. #9
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    He meant Salem. Yeah, it seems not too good for a game, but it seems very good for depicting standing models of postioning.
    Sent from my iPadŽ

  10. #10
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > Replace all @ with spaces. The server removed spaces that should be there for a reason, sigh!
    Now that's COMEDY!
    Dude, how many references to code tags does it take?
    That's [code][/code] (you can't touch this)

  11. #11
    Registered User fischerandom's Avatar
    Join Date
    Aug 2005
    Location
    Stockholm
    Posts
    71
    OK I could put the representation of the chessboard inside of the code tags, but it is not code so it would be an abuse of the code tags, right? Inside of code tags should be only code, nothing else. Its still wrong, I think, that the server removes whitespace in the beginning of a line, etc., why does it do that what's the point? Did you assist in, or write the server code Salem?
    Last edited by fischerandom; 12-11-2005 at 11:03 AM.
    Bobby Fischer Live Radio Interviews http://home.att.ne.jp/moon/fischer/

  12. #12
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well in the absense of a [chess] tag just for you, I guess you should use whatever option produces the most presentable display for whatever it is you're trying to say.
    Code tags just happen to result in something which is monospaced and indented for everyone.

    The thread was pointless, and now it's off-topic, and I'm not going to argue tag semantics with you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Chess and Heuristics
    By Happy_Reaper in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 11-14-2006, 01:05 PM
  2. chess program.
    By myk_raniu in forum C++ Programming
    Replies: 2
    Last Post: 12-19-2005, 03:32 PM
  3. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  4. Ultra chess engine contest
    By yodacpp in forum Projects and Job Recruitment
    Replies: 8
    Last Post: 11-21-2004, 07:58 AM
  5. Ultra chess engine
    By yodacpp in forum Game Programming
    Replies: 2
    Last Post: 11-19-2004, 12:33 PM