Skip to content

Commit b0db2a3

Browse files
committed
SudokuBoard displays index of row and column; added application icon.
1 parent a9d5e95 commit b0db2a3

File tree

8 files changed

+69
-17
lines changed

8 files changed

+69
-17
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ Out of the well known [Sudoku Solving Techniques](https://sudoku9x9.com/sudoku_s
2222
* Naked Pair
2323
* Naked Triple
2424
* Naked Quad
25+
* Hidden Pair
26+
* Hidden Triple
27+
* Hidden Quad

SimpleSudokuSolver.UI/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
66
xmlns:ui="clr-namespace:SimpleSudokuSolver.UI"
77
mc:Ignorable="d"
8-
Title="Sudoku" Height="610" Width="550"
8+
Title="Sudoku" Height="634" Width="566"
99
WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
10-
WindowStyle="ToolWindow">
10+
WindowStyle="SingleBorderWindow">
1111
<Window.InputBindings>
1212
<KeyBinding Modifiers="Control" Key="N" Command="{Binding NewGameCommand}" />
1313
<KeyBinding Modifiers="Control" Key="L" Command="{Binding LoadGameCommand}" />

SimpleSudokuSolver.UI/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
// You can specify all the values or you can default the Build and Revision Numbers
5656
// by using the '*' as shown below:
5757
// [assembly: AssemblyVersion("1.0.*")]
58-
[assembly: AssemblyVersion("0.6.0.0")]
59-
[assembly: AssemblyFileVersion("0.6.0.0")]
60-
[assembly: AssemblyInformationalVersion("0.6.0.0")]
58+
[assembly: AssemblyVersion("0.7.0.0")]
59+
[assembly: AssemblyFileVersion("0.7.0.0")]
60+
[assembly: AssemblyInformationalVersion("0.7.0.0")]

SimpleSudokuSolver.UI/SimpleSudokuSolver.UI.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
3636
</PropertyGroup>
37+
<PropertyGroup>
38+
<ApplicationIcon>icon.ico</ApplicationIcon>
39+
</PropertyGroup>
3740
<ItemGroup>
3841
<Reference Include="System" />
3942
<Reference Include="System.Data" />
@@ -104,5 +107,8 @@
104107
<Name>SimpleSudokuSolver</Name>
105108
</ProjectReference>
106109
</ItemGroup>
110+
<ItemGroup>
111+
<Resource Include="icon.ico" />
112+
</ItemGroup>
107113
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
108114
</Project>

SimpleSudokuSolver.UI/SudokuBoard.xaml

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,59 @@
77
mc:Ignorable="d"
88
d:DesignHeight="540" d:DesignWidth="540">
99
<Grid Margin="2">
10-
<UniformGrid>
11-
<local:SudokuBlock x:Name="block1" />
12-
<local:SudokuBlock x:Name="block2" />
13-
<local:SudokuBlock x:Name="block3" />
14-
<local:SudokuBlock x:Name="block4" />
15-
<local:SudokuBlock x:Name="block5" />
16-
<local:SudokuBlock x:Name="block6" />
17-
<local:SudokuBlock x:Name="block7" />
18-
<local:SudokuBlock x:Name="block8" />
19-
<local:SudokuBlock x:Name="block9" />
20-
</UniformGrid>
10+
<Grid>
11+
<Grid.RowDefinitions>
12+
<RowDefinition Height="24" />
13+
<RowDefinition Height="*" />
14+
</Grid.RowDefinitions>
15+
<Grid.ColumnDefinitions>
16+
<ColumnDefinition Width="16" />
17+
<ColumnDefinition Width="*" />
18+
</Grid.ColumnDefinitions>
19+
20+
<Grid.Resources>
21+
<Style TargetType="Label">
22+
<Setter Property="HorizontalContentAlignment" Value="Center" />
23+
<Setter Property="Margin" Value="0" />
24+
<Setter Property="VerticalContentAlignment" Value="Center" />
25+
</Style>
26+
</Grid.Resources>
27+
28+
<UniformGrid Grid.Row="0" Grid.Column="1" Columns="9" Margin="2,0,2,0">
29+
<Label Content="1" />
30+
<Label Content="2" />
31+
<Label Content="3" Margin="0,0,4,0" />
32+
<Label Content="4" Margin="4,0,0,0" />
33+
<Label Content="5" />
34+
<Label Content="6" Margin="0,0,4,0" />
35+
<Label Content="7" Margin="4,0,0,0" />
36+
<Label Content="8" />
37+
<Label Content="9" />
38+
</UniformGrid>
39+
40+
<UniformGrid Grid.Row="1" Grid.Column="0" Rows="9" Margin="0,2,0,2">
41+
<Label Content="1" />
42+
<Label Content="2" />
43+
<Label Content="3" Margin="0,0,0,4" />
44+
<Label Content="4" Margin="0,4,0,0" />
45+
<Label Content="5" />
46+
<Label Content="6" Margin="0,0,0,4" />
47+
<Label Content="7" Margin="0,4,0,0" />
48+
<Label Content="8" />
49+
<Label Content="9" />
50+
</UniformGrid>
51+
52+
<UniformGrid Grid.Row="1" Grid.Column="1" >
53+
<local:SudokuBlock x:Name="block1" />
54+
<local:SudokuBlock x:Name="block2" />
55+
<local:SudokuBlock x:Name="block3" />
56+
<local:SudokuBlock x:Name="block4" />
57+
<local:SudokuBlock x:Name="block5" />
58+
<local:SudokuBlock x:Name="block6" />
59+
<local:SudokuBlock x:Name="block7" />
60+
<local:SudokuBlock x:Name="block8" />
61+
<local:SudokuBlock x:Name="block9" />
62+
</UniformGrid>
63+
</Grid>
2164
</Grid>
2265
</UserControl>

SimpleSudokuSolver.UI/icon.ico

7.7 KB
Binary file not shown.

SimpleSudokuSolver/SimpleSudokuSolver.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Version>0.6.0</Version>
5+
<Version>0.7.0</Version>
66
<Authors>Robert Kurtanjek</Authors>
77
<PackageLicenseExpression>MIT</PackageLicenseExpression>
88
<PackageProjectUrl>https://github.com/kurtanr/SimpleSudokuSolver</PackageProjectUrl>

images/SimpleSudokuSolver.UI.png

21.5 KB
Loading

0 commit comments

Comments
 (0)