Go Back   CodeCall Programming Forum > Community > Community Projects
Register Blogs Search Today's Posts Mark Forums Read

Community Projects Projects created by members of CodeCall. Post all reviews, bugs and questions in this forum under the correct project thread.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-16-2009, 01:04 PM
Vswe's Avatar
Code Slinger
 
Join Date: Apr 2009
Location: Uppsala, Sweden
Age: 16
Posts: 8,536
Vswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond repute
Send a message via MSN to Vswe Send a message via Skype™ to Vswe
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
File Type: zip Chess.zip (411.0 KB, 31 views)
__________________
My CC Blog | My Website |Periodic table | Pm me | Ask me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-16-2009, 01:29 PM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-16-2009, 01:49 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 24,556
Jordan is a name known to allJordan is a name known to allJordan is a name known to allJordan is a name known to allJordan is a name known to allJordan is a name known to all
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan Send a message via Yahoo to Jordan
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-16-2009, 01:55 PM
Vswe's Avatar
Code Slinger
 
Join Date: Apr 2009
Location: Uppsala, Sweden
Age: 16
Posts: 8,536
Vswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond repute
Send a message via MSN to Vswe Send a message via Skype™ to Vswe
Re: Chess Game with acii chess reader/writer

Only a couple of hours
__________________
My CC Blog | My Website |Periodic table | Pm me | Ask me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-16-2009, 02:40 PM
amrosama's Avatar
Code Warrior
/////////|||||\\\\\\\\\
 
Join Date: Aug 2007
Location: Pyramids st, Giza, Egypt
Age: 21
Posts: 8,112
amrosama is a splendid one to beholdamrosama is a splendid one to beholdamrosama is a splendid one to beholdamrosama is a splendid one to beholdamrosama is a splendid one to beholdamrosama is a splendid one to beholdamrosama is a splendid one to behold
Send a message via MSN to amrosama
Re: Chess Game with acii chess reader/writer

looks great
nice work
__________________
im a code-warrior, see my avatar
who said arabs cant dance?
and who said arabs cant drive??!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-17-2009, 08:23 AM
Termana's Avatar
Code Warrior
 
Join Date: Oct 2008
Posts: 4,055
Termana is a name known to allTermana is a name known to allTermana is a name known to allTermana is a name known to allTermana is a name known to allTermana is a name known to all
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-17-2009, 11:13 AM
Jordan's Avatar
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 24,556
Jordan is a name known to allJordan is a name known to allJordan is a name known to allJordan is a name known to allJordan is a name known to allJordan is a name known to all
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan Send a message via Yahoo to Jordan
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-17-2009, 01:39 PM
Vswe's Avatar
Code Slinger
 
Join Date: Apr 2009
Location: Uppsala, Sweden
Age: 16
Posts: 8,536
Vswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond repute
Send a message via MSN to Vswe Send a message via Skype™ to Vswe
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).
__________________
My CC Blog | My Website |Periodic table | Pm me | Ask me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-18-2009, 04:09 PM
Vswe's Avatar
Code Slinger
 
Join Date: Apr 2009
Location: Uppsala, Sweden
Age: 16
Posts: 8,536
Vswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond reputeVswe has a reputation beyond repute
Send a message via MSN to Vswe Send a message via Skype™ to Vswe
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.
__________________
My CC Blog | My Website |Periodic table | Pm me | Ask me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-18-2009, 04:31 PM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
acii, chess



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Game - A simple Pong eard Java Tutorials 5 01-13-2010 06:27 PM
Tic tac toe ai help elindel Visual Basic Programming 2 04-30-2009 06:13 PM
Creating a card game (multiplaye online with AI).. what do I program this in? anothersoldier General Programming 1 07-19-2007 07:46 AM


All times are GMT -5. The time now is 09:26 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0