Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   Code Library (http://www.xtremevbtalk.com/code-library/)
-   -   HexCell - a game to demonstrate boolean operations (http://www.xtremevbtalk.com/code-library/268334-hexcell-game-demonstrate-boolean-operations.html)

Merrion 08-10-2006 01:13 AM

HexCell - a game to demonstrate boolean operations
2 Attachment(s)
Warning - this can really waste a lot of your time!

The rules of the game will be immediately obvious to anyone who has done Soduku. Basically the grid is divided into 16 quadrants and each row, column and quadrant must contain one and only one of each of the 16 possible colours.

You can select or unselect colours from the 16 possibilities for the current cell using the left mouse button. If you know that a given cell can only contain one colour, there is a right-mouse shortcut menu to select a colour. Also there is an option on that menu to clear a cell back to all 16 possibilities if (when) you get it wrong.

Grids can be saved and loaded to an XML file (with the extension .xhx) and there is one example included.

This program demonstrates using flag values (integers defined as powers of two) to set or unset bits in a 32 bit integer.

All times are GMT -6. The time now is 12:36 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.