Skip to content

Commit

Permalink
[feat] Adds 16x16 sudoku. closes #115.
Browse files Browse the repository at this point in the history
[refactor] simplifies the empty sudoku previews.
  • Loading branch information
coderPaddyS committed Jan 2, 2025
1 parent 57310d6 commit ba8e45f
Show file tree
Hide file tree
Showing 6 changed files with 199 additions and 759 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public enum GameType implements Parcelable{
Unspecified(1,1,1,R.string.gametype_unspecified,R.drawable.icon_default_6x6),
Default_9x9(9,3,3,R.string.gametype_default_9x9,R.drawable.icon_default_9x9),
Default_12x12(12,3,4,R.string.gametype_default_12x12,R.drawable.icon_default_12x12),
Default_16x16(16,4,4,R.string.gametype_default_16x16,R.drawable.icon_default_16x16),
Default_6x6(6,2,3,R.string.gametype_default_6x6,R.drawable.icon_default_6x6),
X_9x9(9,3,3,R.string.gametype_x_9x9,R.drawable.icon_default_9x9),
Hyper_9x9(9,3,3,R.string.gametype_hyper_9x9,R.drawable.icon_default_9x9);
Expand All @@ -54,6 +55,7 @@ public static LinkedList<GameType> getValidGameTypes() {
result.add(Default_6x6);
result.add(Default_9x9);
result.add(Default_12x12);
result.add(Default_16x16);
return result;
}

Expand Down
426 changes: 51 additions & 375 deletions app/src/main/res/drawable/icon_default_12x12.xml

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions app/src/main/res/drawable/icon_default_16x16.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="200"
android:viewportHeight="200">
<!-- Background path -->
<path android:pathData="M0,0h200v200h-200z" android:fillColor="#fcfcfc" />

<!-- Grid lines for 16x16 grid -->
<!-- Horizontal and Vertical lines -->
<path android:pathData="M12.5,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,12.5h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M25.0,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,25.0h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M37.5,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,37.5h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M62.5,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,62.5h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M75.0,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,75.0h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M87.5,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,87.5h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M112.5,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,112.5h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M125.0,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,125.0h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M137.5,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,137.5h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M162.5,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,162.5h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M175.0,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,175.0h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M187.5,0v200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>
<path android:pathData="M0,187.5h200" android:strokeWidth="0.75" android:strokeColor="#ccc"/>

<path android:pathData="M12.5,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,12.5h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M25.0,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,25.0h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M37.5,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,37.5h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M62.5,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,62.5h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M75.0,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,75.0h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M87.5,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,87.5h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M112.5,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,112.5h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M125.0,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,125.0h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M137.5,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,137.5h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M162.5,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,162.5h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M175.0,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,175.0h200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M187.5,0v200" android:strokeWidth="0.5" android:strokeColor="#888"/>
<path android:pathData="M0,187.5h200" android:strokeWidth="0.5" android:strokeColor="#888"/>

<path android:pathData="M100.0,0v200" android:strokeWidth="1.0" android:strokeColor="#000000"/>
<path android:pathData="M0,100.0h200" android:strokeWidth="1.0" android:strokeColor="#000000"/>
<path android:pathData="M50.0,0v200" android:strokeWidth="1.0" android:strokeColor="#000000"/>
<path android:pathData="M0,50.0h200" android:strokeWidth="1.0" android:strokeColor="#000000"/>
<path android:pathData="M150.0,0v200" android:strokeWidth="1.0" android:strokeColor="#000000"/>
<path android:pathData="M0,150.0h200" android:strokeWidth="1.0" android:strokeColor="#000000"/>

<path android:pathData="M0,0h200" android:strokeWidth="1.5" android:strokeColor="#000000"/>
<path android:pathData="M0,0v200" android:strokeWidth="1.5" android:strokeColor="#000000"/>
<path android:pathData="M200,0v200" android:strokeWidth="1.5" android:strokeColor="#000000"/>
<path android:pathData="M0,200h200" android:strokeWidth="1.5" android:strokeColor="#000000"/>
</vector>
Loading

0 comments on commit ba8e45f

Please sign in to comment.