2005-12-10, 04:30 AM
I've added a few enhancements to the original version but it's still pretty basic.
Don't mess about with the SuDokuGrid special element attributes xCellCount and yCellCount - odd things may happen.
The grid generator is still flawed and you will often end up with an 'either/or' situation when it comes to filling the last few cells. I've changed the logic to acknowledge a 'grid complete' even if it doesn't exactly match the original. I'll look at generating 'single solution' grids.
To use - create a folder called SuDoku in your skin folder and drop the skin.xml in there. Put the plugin dll in your plugins folder, start Config, enable the plugin and click OK.
Cheers,
Brian
- Simple timer - this will be more or less accurate depending on the speed of your system. I'll look at putting a 'true' timer in.
- Four different levels in two styles. The levels followed by (S) provide a 'rotational symmetry' to the start grid. Before starting a game, use the down arrow to select the '<- Level ->' button and the left/right arrows to select a level. Go back to the Start/Cont button and press OK to begin.
- Ability to pause using Ctrl-Q on keyboard or the Pause button on the MVP remote. Pressing ESC (or Back/Exit on MVP remote) has the same effect. NOTE - using ESC to leave the plugin will lose the game position altogether and you'll start a new game when returning.
- Ability to 'pencil in' numbers by pressing Ctrl-B on the keyboard or the Blue button on MVP remote. This is a 'toggle' option so turn it off again when you want to enter a number you're sure of. Up to 3 'penciled' numbers are allowed for a cell.
Code:
<TextStyle name="PrefilledNumbers" color="Red" typeFace="Tahoma" size="16" style="bold"/>
<TextStyle name="PlayerNumbers" color="Blue" typeFace="Tahoma" size="16" style="bold"/>
<TextStyle name="PencilledNumbers" color="Magenta" typeFace="Tahoma" size="12" style="bold"/>
...
<SpecialElement name="SuDokuGrid" xPos="220" yPos="70" cellWidth="40" cellHeight="40" xCellcount="9" yCellcount="9" lineWidth="1" fillColour="LightGray"/>
The grid generator is still flawed and you will often end up with an 'either/or' situation when it comes to filling the last few cells. I've changed the logic to acknowledge a 'grid complete' even if it doesn't exactly match the original. I'll look at generating 'single solution' grids.
To use - create a folder called SuDoku in your skin folder and drop the skin.xml in there. Put the plugin dll in your plugins folder, start Config, enable the plugin and click OK.
Cheers,
Brian