+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 12

Thread: Chess Game with acii chess reader/writer

  1. #1
    Moderator Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe's Avatar
    Join Date
    Apr 2009
    Location
    Uppsala, Sweden
    Age
    16
    Posts
    8,777
    Blog Entries
    5

    Chess Game with acii chess reader/writer

    Title: Chess Game with acii chess reader/writer


    Description:
    This program is a chess program which can read and write the board from/to ACII text like this:

    Code:
    bRk|bKn|bBi|bQu|bKi|bBi|bKn|bRk|
    ---+---+---+---+---+---+---+---+
    bP |bP |bP |bP |bP |bP |bP |bP |
    ---+---+---+---+---+---+---+---+
       |   |   |   |   |   |   |   |
    ---+---+---+---+---+---+---+---+
       |   |   |   |   |   |   |   |
    ---+---+---+---+---+---+---+---+
       |   |   |   |   |   |   |   |
    ---+---+---+---+---+---+---+---+
       |   |   |   |   |   |   |   |
    ---+---+---+---+---+---+---+---+
    wP |wP |wP |wP |wP |wP |wP |wP |
    ---+---+---+---+---+---+---+---+
    wRk|wKn|wBi|wQu|wKi|wBi|wKn|wRk|

    It also shows threatened and guarded pieces to give the player a better overview (which is hard to get in normal ACII chess).


    Language:
    This program is written in VB.Net.

    Additional Info:

    I have took 3 screen shots and added text to them, they should explain everything:

    Overview:



    Colored Squares:



    Selection:






    Tested System:
    This "completed" program have only been tested on Windows Vista but during the work I have also tested it on Windows Xp.


    Requirements (if any are known):
    Knowing the chess rules

    License:
    I will not give anyone the code to this program until I'm done with my Todo list, then I will probably upload the source code too.

    Operating Systems:
    Since this is written in VB.Net it only works for windows.

    Features:
    See Additional Info

    Todo List
    -Making an icon to the program
    -Adding 3 special moves (Castling, Promotion and En passant)
    -Making so a piece which guarding the king (standing between the king and an enemy piece which could have take the king if it wasn't for this piece) can't threaten other pieces.
    -Create the last 3 pictures (black king on black, white king on white and white queen on black) Thanks to amrosama for his pictures.
    -And maybe something more, let me know if I should add anything more.


    Source/Binary Attachment:
    Attached Files

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,662
    Blog Entries
    57

    Re: Chess Game with acii chess reader/writer

    It looks nice. Now if I wasn't on Linux...
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  3. #3
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Chess Game with acii chess reader/writer

    Impressive!! I wonder if it can be ported to Linux using mono. How long did this take you?
    Posted via CodeCall Mobile

  4. #4
    Moderator Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe's Avatar
    Join Date
    Apr 2009
    Location
    Uppsala, Sweden
    Age
    16
    Posts
    8,777
    Blog Entries
    5

    Re: Chess Game with acii chess reader/writer

    Only a couple of hours

  5. #5
    Code Warrior
    /////////|||||\\\\\\\\\
    amrosama is a splendid one to behold amrosama is a splendid one to behold amrosama is a splendid one to behold amrosama is a splendid one to behold amrosama is a splendid one to behold amrosama is a splendid one to behold amrosama is a splendid one to behold amrosama's Avatar
    Join Date
    Aug 2007
    Location
    Pyramids st, Giza, Egypt
    Age
    21
    Posts
    8,182
    Blog Entries
    12

    Re: Chess Game with acii chess reader/writer

    looks great
    nice work

  6. #6
    Code Warrior Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana is a name known to all Termana's Avatar
    Join Date
    Oct 2008
    Posts
    4,055
    Blog Entries
    6

    Re: Chess Game with acii chess reader/writer

    mono is suppose to be fully compatible with .NET 2.0 Executables - as long as classes from higher versions were not used, you could simply select .NET 2.0 Framework in the project properties, recompile and it should work on a system with mono. Just thought I'd let you know - normally people don't leave the main application class named WindowsApplication1 in their code
    My Site | Questions and Answers | Ask Me: Termana | Last Tutorial: Ajax innerHTML
    If you can keep your head while all around you are losing theirs, you probably have a CD writer on your desktop

  7. #7
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Chess Game with acii chess reader/writer

    Sounds simple enough, Termana. Have you done it before and did it work?

    @Vswe: What version of .NET did you use?

  8. #8
    Moderator Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe's Avatar
    Join Date
    Apr 2009
    Location
    Uppsala, Sweden
    Age
    16
    Posts
    8,777
    Blog Entries
    5

    Re: Chess Game with acii chess reader/writer

    @Termana: I don't know where that option is in VB I have only found it in C#.

    @Jordan: 3.5 (or at least I think so).

  9. #9
    Moderator Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe has a reputation beyond repute Vswe's Avatar
    Join Date
    Apr 2009
    Location
    Uppsala, Sweden
    Age
    16
    Posts
    8,777
    Blog Entries
    5

    Re: Chess Game with acii chess reader/writer

    Now after some hard work I can now release version 2 of my Chess with ASCII chess reader/writer.

    The program's main window now look like this:



    As you can see it looks a little bit different now.

    This is all changes for this version:

    *Added the three missing special moves

    -Promotion:



    -Castling:



    -En passant:




    *The programs now check for Check and CheckMate.

    -Check:



    -CheckMate:





    If it will be checkmate after you have moved the selected piece this will be shown:





    *The user can now change the settings. What things that should be shown and with witch color.




    All these 11 colors can be changed by clicking on the colored square:




    All colors can also be previewed with the current color and in the right position, this is the attack color preview when the color blue is selected:






    *Creating movies for the game:

    Here we have the option to create a movie:



    If you press new movie a window will be shown were you will create the start screen:




    After we created the movie we got some more options:




    By pressing add image you will store the current image (the one in the picturebox, not a image created from the textbox) as next frame.


    Then by pressing show movie window you can edit a few things before saving your image:





    Here you can see all the images (15/page). You can change order and delete all the images but the first one. The first image you can instead edit, if you do so the same window as popped up before when you created the movie will be shown.

    Then you can select Frames per second, path and start screen multiplier.

    If you have selected the Fps to 1 and the multiplier to 10 means that the first frame(the one with the text) will be shown in 10x1 seconds and a normal frame will be shown for 1 second.

    Then you can create the .avi file by clicking Create Move. Now all frames will be saved to the .avi.



    That was all the changes.

    It was meant that I should upload the source code too, but it's 54mb big and that's too big.

    And now when I'm trying to attach the program I receive a Database error, what does that mean? I'll try to upload the program as fast as possible.

  10. #10
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,662
    Blog Entries
    57

    Re: Chess Game with acii chess reader/writer

    very cool!
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Game - A simple Pong
    By eard in forum Java Tutorials
    Replies: 5
    Last Post: 01-13-2010, 05:27 PM
  2. Tic tac toe ai help
    By elindel in forum Visual Basic Programming
    Replies: 2
    Last Post: 04-30-2009, 05:13 PM
  3. Replies: 1
    Last Post: 07-19-2007, 06:46 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts