Geek Articles

Categories

 

Subscribe

Daily Updates Subscribe geekarticles update via email Subscribe geekarticles update via RSS

 
GeekArticles Database SQL Server

Creating an Online Boggle Solver :: Solving the Puzzle

Author: aspnet.4guysfromrolla.com | Published: 10th Apr 2008 | Visited: 184 times | Add Comment
Filed in: SQL Server

My family enjoys playing games and one of our favorites is Boggle, an addictive word game where players attempt to find as many words in a 4x4 grid of letters. At the end of a game, players are left wondering whether there were any unearthed words. To answer this question once and for all, I created an online Boggle solver using ASP.NET version 3.5. This article is the second installment in a two-part series. Last week's article, Building the User Interface, examined the Boggle solver web page's user interface, which consists of 16 TextBox Web controls arranged in a 4x4 grid and three Button Web controls for solving the user-entered puzzle, solving a randomly-generated puzzle, and clearing the board. A ListView control is used to display the solutions in a three-column HTML <table>. The user interface also included a handful of JavaScript functions to ease entering the board data. This second and final installment details the code used to solve the puzzle. Solving the puzzle requires having a dictionary of legal words and objects that mirror the structure and functionality of the board and of solutions. These objects are implemented as classes that include internal data structures that use a number of features in the .NET Framework, including: Generics; automatic properties; and caching. The complete source code is available for download at the end of the article. Try out the live demo or read on to learn more! Read More >

Read Article
 

Sponsored Links

 


Related Articles

 Creating a scoreboard in Spry in five easy steps Build a real-time scoreboard with notifications for your personal webs ...

 Article :: Creating and Destroying Java Objects Java expert Josh Bloch discusses the ins and outs of creating and destroying obje ...

 Selling Your Gadget: Chapter 4 Creating Vista Gadgets using HTML, CSS & JavaScript This chapter discuss the Sidebar Gadget revenue mo ...

 Creating a Proxy to Download PDF Reports from SRS How to create a proxy that downloads PDF reports from SRS and then stream them back to the client bro ...

 Creating the Same Program in Windows Forms and WPF Shows how to write the same simple program in Windows Forms and ...

 Creating Oracle Coherence Caches in Oracle JDeveloper Learn how to create and configure an Oracle Coherence cache in Oracle JDeveloper, step by s ...

 Creating XML with the DOM PHP Extension Creating XML with the DOM PHP Extension In fact, the PHP DOM extension is a set of classes that can be used to generate, access, and manipulate XML data. The DOM.php script defined in the following listing shows how to generate an XML document based on the result set retrieved from the database. Vi ...

  Creating data-driven application prototypes with Dreamweaver and Flash Learn to build portable Flash application prototypes easily using PHP scripting and XML files to simulate back-end d ...

 Creating Your Own Custom Delphi Components - Inside and Out Custom VCL dev. :: This tutorial will explain component writing to you, which should result in more code reuse. It will go over properties, events and methods, and will als ...

 Programatically Creating MSMQ Triggers An article on creating MSMQ triggers manually at runtime and firing it to take a custom ac ...



Next: Creating an Online Boggle Solver :: Building the User Interface



Post Comment

Name:


Email:
 (Optional. Used for Notification)

Title:

 
Comment:


Validation Code:
 <=>  (Enter this code in text box)





Latest Articles

 

Popular Articles

Sponsored Links