Blue Theme Orange Theme Green Theme Red Theme
 
Discover the top 5 tips for understanding .NET Interop
Home | Forums | Videos | Photos | Blogs | Beginners | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Team Foundation Server Hosting
Search :       Advanced Search »
Home » VB.NET » A Chess Program using VB.NET

A Chess Program using VB.NET

This is a chess game developed using VB.Net. In this application, I have used object oriented concepts and design patterns like Flyweight, Factory and Decorator. Two players can play this game by simply dragging and dropping the pieces on the form.

Page Views : 45278
Downloads : 2592
Rating :
 Rate it
Level : Intermediate
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
Download Files:
CheckMate.zip
 
 
Mindcracker MVP Summit 2012
Become a Sponsor
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

Introduction.

This is a chess program, made using VB.Net. It has used object oriented concepts and design patterns like Flyweight, Factory and Decorator.

Two player can play this game and it has facility to drag-drop pieces. It also shows potential positions of each pieces which is useful for learning.

Following is the overview of the classes and relationship among them.

Block Diagram.



Screenshots.



NOTE: THIS ARTICLE IS CONVERTED FROM C# TO VB.NET USING A CONVERSION TOOL. ORIGINAL ARTICLE CAN BE FOUND ON C# CORNER (WWW.C-SHARPCORNER.COM).

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Kaushal Golwala
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the top 5 tips for understanding .NET
Ricky Leeks presents the top 5 tips for understanding .NET Interoperability. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
Team Foundation Server Hosting
Become a Sponsor
 Comments
yooo by mat On February 23, 2007
whats goin on my comp sci bretheren
Reply | Email | Modify 
my teacher by mat On February 23, 2007
kapustina is a jackass nigga
Reply | Email | Modify 
Chowdary rated it by sandeep On November 27, 2007
It's good
Reply | Email | Modify 
were is the source code by sunny On September 18, 2008
were is source codes
Reply | Email | Modify 
Where is source code by arumugam On December 3, 2008
Where is source code
Reply | Email | Modify 
bAyAG AT KIkE by Keith On January 13, 2009
tanga kbA haAh???????/ tAnGiNa Ka ULo!!!!!! !! ! !! ! ! !! kUpaL Ka pLa EhH
Reply | Email | Modify 
An Error by Gopi On February 19, 2009
Dear Kaushal, sorry to say this, the work u have done is not perfect.The logic of the chess game which u have created s not correct.In the chess, the pawn should not jump front if any other item is there.But, in this it is jumping.For ex: place black bishop in the 3rd row first item.Then, move the pawn which is back off it(i.e., in the 2nd row first column, it can jump and will be placed in 4th row first column) like this checkout for all other pawns with this condition it will jump.But, the actual chess game logic is not like that only the knight show have the control of jumping and other should not have.so,Please change it.
Reply | Email | Modify 
Checkmate.zip by Zeke On March 14, 2009
I was hoping a one player game vs. the computer was an option with this game. If it is and I am not loading the game correctly please email me to let me know how I can get a one player game going on this program. Thank you.
Reply | Email | Modify 
check by ramesh On October 19, 2009
very nice
Reply | Email | Modify 
Your a great Programmer by allan On October 24, 2009
Your nice and i hope you can do a lots thank you very much.....
Reply | Email | Modify 
showing error by ashok On November 14, 2009
sir,
I have compiled the chess program
while entering into the game it is showing an error near gameinitialise()
I have not changed the default palayer1,player2
vaues and  also tried by giving the names of the players but not getting the game executed



Reply | Email | Modify 
Nice by Rezwan Saki On January 4, 2010
Great!!!!
Reply | Email | Modify 
board by Himanshu On January 31, 2011
nice game but can u tell me what is the code for only chessboard in ur code
Reply | Email | Modify 
board by Himanshu On January 31, 2011
nice game but can u tell me what is the code for only chessboard in ur code
Reply | Email | Modify 
Since AI and levels of game put by Kevin On March 5, 2011
You have the code of the AI and also put the type of AI help me, kevinksoft@yahoo.es
Reply | Email | Modify 
visual basic by celal On May 15, 2011
hi have you got these program visual basic's code . can u send it me pls?
Reply | Email | Modify 

 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.