├── Final Game
├── Assembly-CSharp.csproj
├── Assets
│ ├── Art.meta
│ ├── Art
│ │ ├── Check-128.png
│ │ ├── Check-128.png.meta
│ │ ├── Close-128.png
│ │ ├── Close-128.png.meta
│ │ ├── Command-Undo-128.png
│ │ ├── Command-Undo-128.png.meta
│ │ ├── Redo.jpg
│ │ ├── Redo.jpg.meta
│ │ ├── Reload-128 (2).png
│ │ ├── Reload-128 (2).png.meta
│ │ ├── Report-Delete-128.png
│ │ ├── Report-Delete-128.png.meta
│ │ ├── Verify-128.png
│ │ └── Verify-128.png.meta
│ ├── Objects.meta
│ ├── Objects
│ │ ├── Grid.prefab
│ │ ├── Grid.prefab.meta
│ │ ├── GridLines.prefab
│ │ ├── GridLines.prefab.meta
│ │ ├── NumberInput.prefab
│ │ ├── NumberInput.prefab.meta
│ │ ├── QuitBtn.prefab
│ │ ├── QuitBtn.prefab.meta
│ │ ├── Row.prefab
│ │ ├── Row.prefab.meta
│ │ ├── SelectionInput.prefab
│ │ ├── SelectionInput.prefab.meta
│ │ ├── StartBtn.prefab
│ │ └── StartBtn.prefab.meta
│ ├── Scenes.meta
│ ├── Scenes
│ │ ├── Level.unity
│ │ ├── Level.unity.meta
│ │ ├── Main.unity
│ │ └── Main.unity.meta
│ ├── Scripts.meta
│ ├── Scripts
│ │ ├── Erase.cs
│ │ ├── Erase.cs.meta
│ │ ├── GameManager.cs
│ │ ├── GameManager.cs.meta
│ │ ├── GetChildren.cs
│ │ ├── GetChildren.cs.meta
│ │ ├── Menubehavior.cs
│ │ ├── Menubehavior.cs.meta
│ │ ├── NumberInput.cs
│ │ ├── NumberInput.cs.meta
│ │ ├── Program.cs
│ │ └── Program.cs.meta
│ ├── Test.meta
│ └── Test
│ │ ├── getvalue.cs
│ │ └── getvalue.cs.meta
├── Library
│ ├── AnnotationManager
│ ├── AssetImportState
│ ├── AssetServerCacheV3
│ ├── AssetVersioning.db
│ ├── BuildSettings.asset
│ ├── CurrentLayout.dwlt
│ ├── CurrentMaximizeLayout.dwlt
│ ├── EditorUserBuildSettings.asset
│ ├── EditorUserSettings.asset
│ ├── InspectorExpandedItems.asset
│ ├── LastBuild.buildreport
│ ├── LastSceneManagerSetup.txt
│ ├── LibraryFormatVersion.txt
│ ├── MonoManager.asset
│ ├── ProjectSettings.asset
│ ├── ScriptAssemblies
│ │ ├── Assembly-CSharp.dll
│ │ ├── Assembly-CSharp.dll.mdb
│ │ └── BuiltinAssemblies.stamp
│ ├── ScriptMapper
│ ├── ShaderCache.db
│ ├── SpriteAtlasDatabase.asset
│ ├── TilemapEditorUserSettings.asset
│ ├── assetDatabase3
│ ├── dummy.txt
│ ├── expandedItems
│ ├── shadercompiler-UnityShaderCompiler.exe0.log
│ ├── shadercompiler-UnityShaderCompiler.exe1.log
│ ├── shadercompiler-UnityShaderCompiler.exe2.log
│ └── shadercompiler-UnityShaderCompiler.exe3.log
├── ProjectSettings
│ ├── AudioManager.asset
│ ├── ClusterInputManager.asset
│ ├── DynamicsManager.asset
│ ├── EditorBuildSettings.asset
│ ├── EditorSettings.asset
│ ├── GraphicsSettings.asset
│ ├── InputManager.asset
│ ├── NavMeshAreas.asset
│ ├── NetworkManager.asset
│ ├── Physics2DSettings.asset
│ ├── ProjectSettings.asset
│ ├── ProjectVersion.txt
│ ├── QualitySettings.asset
│ ├── TagManager.asset
│ ├── TimeManager.asset
│ └── UnityConnectSettings.asset
├── README.md
├── Sudo v3.sln
├── Sudo v3.userprefs
├── UnityPackageManager
│ └── manifest.json
├── desktop.ini
└── obj
│ └── Debug
│ ├── Assembly-CSharp.csproj.FileListAbsolute.txt
│ ├── Assembly-CSharp.csprojResolveAssemblyReference.cache
│ ├── Assembly-CSharp.dll
│ └── Assembly-CSharp.pdb
├── README.md
├── SudoGame.exe
├── documentation
└── README.md
├── requirements
├── Initial_requirements.docx
├── README.md
└── ~$itial_requirements.docx
├── testcases
├── README.md
├── acceptance_test
│ └── Acceptance Test.pdf
├── deliverable1.docx
├── implement_test
│ └── Implementation Test.pdf
└── unit_test
│ └── unittest.pdf
└── userstories
├── README.md
└── deliverable1.docx
/Final Game/Assembly-CSharp.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | 10.0.20506
7 | 2.0
8 |
9 | {09398481-02EF-7877-CB44-9FD676EE9027}
10 | Library
11 | Properties
12 | Assembly-CSharp
13 | v3.5
14 | 512
15 | Assets
16 |
17 |
18 | true
19 | full
20 | false
21 | Temp\bin\Debug\
22 | DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_5_6_0;UNITY_5_6;UNITY_5;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;INCLUDE_DYNAMIC_GI;INCLUDE_GI;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_SCRIPTING_NEW_CSHARP_COMPILER;ENABLE_VIDEO;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_2_0_SUBSET;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE
23 | prompt
24 | 4
25 | 0169
26 |
27 |
28 | pdbonly
29 | true
30 | Temp\bin\Release\
31 | prompt
32 | 4
33 | 0169
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine.dll
43 |
44 |
45 | C:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll
57 |
58 |
59 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll
60 |
61 |
62 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TestRunner/UnityEngine.TestRunner.dll
63 |
64 |
65 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TestRunner/nunit.framework.dll
66 |
67 |
68 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityAnalytics/UnityEngine.Analytics.dll
69 |
70 |
71 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll
72 |
73 |
74 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/RuntimeEditor/UnityEngine.VR.dll
75 |
76 |
77 |
78 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/Final Game/Assets/Art.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4b1a87ddb7b2fd84ab3461cc994b698c
3 | folderAsset: yes
4 | timeCreated: 1521249461
5 | licenseType: Free
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Check-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Art/Check-128.png
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Check-128.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e7f915f9f14200543851cbcafcad1f0c
3 | timeCreated: 1521754881
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | externalObjects: {}
8 | serializedVersion: 4
9 | mipmaps:
10 | mipMapMode: 0
11 | enableMipMap: 0
12 | sRGBTexture: 1
13 | linearTexture: 0
14 | fadeOut: 0
15 | borderMipMap: 0
16 | mipMapsPreserveCoverage: 0
17 | alphaTestReferenceValue: 0.5
18 | mipMapFadeDistanceStart: 1
19 | mipMapFadeDistanceEnd: 3
20 | bumpmap:
21 | convertToNormalMap: 0
22 | externalNormalMap: 0
23 | heightScale: 0.25
24 | normalMapFilter: 0
25 | isReadable: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: -1
36 | mipBias: -1
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: 1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 1
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
49 | spritePixelsToUnits: 100
50 | alphaUsage: 1
51 | alphaIsTransparency: 1
52 | spriteTessellationDetail: -1
53 | textureType: 8
54 | textureShape: 1
55 | maxTextureSizeSet: 0
56 | compressionQualitySet: 0
57 | textureFormatSet: 0
58 | platformSettings:
59 | - buildTarget: DefaultTexturePlatform
60 | maxTextureSize: 2048
61 | resizeAlgorithm: 0
62 | textureFormat: -1
63 | textureCompression: 1
64 | compressionQuality: 50
65 | crunchedCompression: 0
66 | allowsAlphaSplitting: 0
67 | overridden: 0
68 | androidETC2FallbackOverride: 0
69 | spriteSheet:
70 | serializedVersion: 2
71 | sprites: []
72 | outline: []
73 | physicsShape: []
74 | spritePackingTag:
75 | userData:
76 | assetBundleName:
77 | assetBundleVariant:
78 |
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Close-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Art/Close-128.png
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Close-128.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 241b0f967c4015e4994fa517d1e7c4a6
3 | timeCreated: 1521754881
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | externalObjects: {}
8 | serializedVersion: 4
9 | mipmaps:
10 | mipMapMode: 0
11 | enableMipMap: 0
12 | sRGBTexture: 1
13 | linearTexture: 0
14 | fadeOut: 0
15 | borderMipMap: 0
16 | mipMapsPreserveCoverage: 0
17 | alphaTestReferenceValue: 0.5
18 | mipMapFadeDistanceStart: 1
19 | mipMapFadeDistanceEnd: 3
20 | bumpmap:
21 | convertToNormalMap: 0
22 | externalNormalMap: 0
23 | heightScale: 0.25
24 | normalMapFilter: 0
25 | isReadable: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: -1
36 | mipBias: -1
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: 1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 1
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
49 | spritePixelsToUnits: 100
50 | alphaUsage: 1
51 | alphaIsTransparency: 1
52 | spriteTessellationDetail: -1
53 | textureType: 8
54 | textureShape: 1
55 | maxTextureSizeSet: 0
56 | compressionQualitySet: 0
57 | textureFormatSet: 0
58 | platformSettings:
59 | - buildTarget: DefaultTexturePlatform
60 | maxTextureSize: 2048
61 | resizeAlgorithm: 0
62 | textureFormat: -1
63 | textureCompression: 1
64 | compressionQuality: 50
65 | crunchedCompression: 0
66 | allowsAlphaSplitting: 0
67 | overridden: 0
68 | androidETC2FallbackOverride: 0
69 | spriteSheet:
70 | serializedVersion: 2
71 | sprites: []
72 | outline: []
73 | physicsShape: []
74 | spritePackingTag:
75 | userData:
76 | assetBundleName:
77 | assetBundleVariant:
78 |
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Command-Undo-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Art/Command-Undo-128.png
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Command-Undo-128.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8d42e4053d7198f4eaac172e2d1acb0c
3 | timeCreated: 1521755074
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | externalObjects: {}
8 | serializedVersion: 4
9 | mipmaps:
10 | mipMapMode: 0
11 | enableMipMap: 0
12 | sRGBTexture: 1
13 | linearTexture: 0
14 | fadeOut: 0
15 | borderMipMap: 0
16 | mipMapsPreserveCoverage: 0
17 | alphaTestReferenceValue: 0.5
18 | mipMapFadeDistanceStart: 1
19 | mipMapFadeDistanceEnd: 3
20 | bumpmap:
21 | convertToNormalMap: 0
22 | externalNormalMap: 0
23 | heightScale: 0.25
24 | normalMapFilter: 0
25 | isReadable: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: -1
36 | mipBias: -1
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: 1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 1
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
49 | spritePixelsToUnits: 100
50 | alphaUsage: 1
51 | alphaIsTransparency: 1
52 | spriteTessellationDetail: -1
53 | textureType: 8
54 | textureShape: 1
55 | maxTextureSizeSet: 0
56 | compressionQualitySet: 0
57 | textureFormatSet: 0
58 | platformSettings:
59 | - buildTarget: DefaultTexturePlatform
60 | maxTextureSize: 2048
61 | resizeAlgorithm: 0
62 | textureFormat: -1
63 | textureCompression: 1
64 | compressionQuality: 50
65 | crunchedCompression: 0
66 | allowsAlphaSplitting: 0
67 | overridden: 0
68 | androidETC2FallbackOverride: 0
69 | spriteSheet:
70 | serializedVersion: 2
71 | sprites: []
72 | outline: []
73 | physicsShape: []
74 | spritePackingTag:
75 | userData:
76 | assetBundleName:
77 | assetBundleVariant:
78 |
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Redo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Art/Redo.jpg
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Redo.jpg.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b75648e6c53fe374b92bf1fb68c10a9b
3 | timeCreated: 1521251735
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | serializedVersion: 4
8 | mipmaps:
9 | mipMapMode: 0
10 | enableMipMap: 0
11 | sRGBTexture: 1
12 | linearTexture: 0
13 | fadeOut: 0
14 | borderMipMap: 0
15 | mipMapFadeDistanceStart: 1
16 | mipMapFadeDistanceEnd: 3
17 | bumpmap:
18 | convertToNormalMap: 0
19 | externalNormalMap: 0
20 | heightScale: 0.25
21 | normalMapFilter: 0
22 | isReadable: 0
23 | grayScaleToAlpha: 0
24 | generateCubemap: 6
25 | cubemapConvolution: 0
26 | seamlessCubemap: 0
27 | textureFormat: 1
28 | maxTextureSize: 2048
29 | textureSettings:
30 | filterMode: -1
31 | aniso: -1
32 | mipBias: -1
33 | wrapMode: 1
34 | nPOTScale: 0
35 | lightmap: 0
36 | compressionQuality: 50
37 | spriteMode: 1
38 | spriteExtrude: 1
39 | spriteMeshType: 1
40 | alignment: 0
41 | spritePivot: {x: 0.5, y: 0.5}
42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
43 | spritePixelsToUnits: 100
44 | alphaUsage: 1
45 | alphaIsTransparency: 1
46 | spriteTessellationDetail: -1
47 | textureType: 8
48 | textureShape: 1
49 | maxTextureSizeSet: 0
50 | compressionQualitySet: 0
51 | textureFormatSet: 0
52 | platformSettings:
53 | - buildTarget: DefaultTexturePlatform
54 | maxTextureSize: 2048
55 | textureFormat: -1
56 | textureCompression: 1
57 | compressionQuality: 50
58 | crunchedCompression: 0
59 | allowsAlphaSplitting: 0
60 | overridden: 0
61 | spriteSheet:
62 | serializedVersion: 2
63 | sprites: []
64 | outline: []
65 | spritePackingTag:
66 | userData:
67 | assetBundleName:
68 | assetBundleVariant:
69 |
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Reload-128 (2).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Art/Reload-128 (2).png
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Reload-128 (2).png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 27f0f79f0dbaec04bab12fe7c0263e4a
3 | timeCreated: 1521754881
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | externalObjects: {}
8 | serializedVersion: 4
9 | mipmaps:
10 | mipMapMode: 0
11 | enableMipMap: 0
12 | sRGBTexture: 1
13 | linearTexture: 0
14 | fadeOut: 0
15 | borderMipMap: 0
16 | mipMapsPreserveCoverage: 0
17 | alphaTestReferenceValue: 0.5
18 | mipMapFadeDistanceStart: 1
19 | mipMapFadeDistanceEnd: 3
20 | bumpmap:
21 | convertToNormalMap: 0
22 | externalNormalMap: 0
23 | heightScale: 0.25
24 | normalMapFilter: 0
25 | isReadable: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: -1
36 | mipBias: -1
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: 1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 1
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
49 | spritePixelsToUnits: 100
50 | alphaUsage: 1
51 | alphaIsTransparency: 1
52 | spriteTessellationDetail: -1
53 | textureType: 8
54 | textureShape: 1
55 | maxTextureSizeSet: 0
56 | compressionQualitySet: 0
57 | textureFormatSet: 0
58 | platformSettings:
59 | - buildTarget: DefaultTexturePlatform
60 | maxTextureSize: 2048
61 | resizeAlgorithm: 0
62 | textureFormat: -1
63 | textureCompression: 1
64 | compressionQuality: 50
65 | crunchedCompression: 0
66 | allowsAlphaSplitting: 0
67 | overridden: 0
68 | androidETC2FallbackOverride: 0
69 | spriteSheet:
70 | serializedVersion: 2
71 | sprites: []
72 | outline: []
73 | physicsShape: []
74 | spritePackingTag:
75 | userData:
76 | assetBundleName:
77 | assetBundleVariant:
78 |
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Report-Delete-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Art/Report-Delete-128.png
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Report-Delete-128.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: af491202240217a4cbf3816d9e6e0d3c
3 | timeCreated: 1521754881
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | externalObjects: {}
8 | serializedVersion: 4
9 | mipmaps:
10 | mipMapMode: 0
11 | enableMipMap: 0
12 | sRGBTexture: 1
13 | linearTexture: 0
14 | fadeOut: 0
15 | borderMipMap: 0
16 | mipMapsPreserveCoverage: 0
17 | alphaTestReferenceValue: 0.5
18 | mipMapFadeDistanceStart: 1
19 | mipMapFadeDistanceEnd: 3
20 | bumpmap:
21 | convertToNormalMap: 0
22 | externalNormalMap: 0
23 | heightScale: 0.25
24 | normalMapFilter: 0
25 | isReadable: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: -1
36 | mipBias: -1
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: 1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 1
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
49 | spritePixelsToUnits: 100
50 | alphaUsage: 1
51 | alphaIsTransparency: 1
52 | spriteTessellationDetail: -1
53 | textureType: 8
54 | textureShape: 1
55 | maxTextureSizeSet: 0
56 | compressionQualitySet: 0
57 | textureFormatSet: 0
58 | platformSettings:
59 | - buildTarget: DefaultTexturePlatform
60 | maxTextureSize: 2048
61 | resizeAlgorithm: 0
62 | textureFormat: -1
63 | textureCompression: 1
64 | compressionQuality: 50
65 | crunchedCompression: 0
66 | allowsAlphaSplitting: 0
67 | overridden: 0
68 | androidETC2FallbackOverride: 0
69 | spriteSheet:
70 | serializedVersion: 2
71 | sprites: []
72 | outline: []
73 | physicsShape: []
74 | spritePackingTag:
75 | userData:
76 | assetBundleName:
77 | assetBundleVariant:
78 |
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Verify-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Art/Verify-128.png
--------------------------------------------------------------------------------
/Final Game/Assets/Art/Verify-128.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 835db7d69bcd48143bbb7607513a4209
3 | timeCreated: 1521754881
4 | licenseType: Free
5 | TextureImporter:
6 | fileIDToRecycleName: {}
7 | externalObjects: {}
8 | serializedVersion: 4
9 | mipmaps:
10 | mipMapMode: 0
11 | enableMipMap: 0
12 | sRGBTexture: 1
13 | linearTexture: 0
14 | fadeOut: 0
15 | borderMipMap: 0
16 | mipMapsPreserveCoverage: 0
17 | alphaTestReferenceValue: 0.5
18 | mipMapFadeDistanceStart: 1
19 | mipMapFadeDistanceEnd: 3
20 | bumpmap:
21 | convertToNormalMap: 0
22 | externalNormalMap: 0
23 | heightScale: 0.25
24 | normalMapFilter: 0
25 | isReadable: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: -1
36 | mipBias: -1
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: 1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 1
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
49 | spritePixelsToUnits: 100
50 | alphaUsage: 1
51 | alphaIsTransparency: 1
52 | spriteTessellationDetail: -1
53 | textureType: 8
54 | textureShape: 1
55 | maxTextureSizeSet: 0
56 | compressionQualitySet: 0
57 | textureFormatSet: 0
58 | platformSettings:
59 | - buildTarget: DefaultTexturePlatform
60 | maxTextureSize: 2048
61 | resizeAlgorithm: 0
62 | textureFormat: -1
63 | textureCompression: 1
64 | compressionQuality: 50
65 | crunchedCompression: 0
66 | allowsAlphaSplitting: 0
67 | overridden: 0
68 | androidETC2FallbackOverride: 0
69 | spriteSheet:
70 | serializedVersion: 2
71 | sprites: []
72 | outline: []
73 | physicsShape: []
74 | spritePackingTag:
75 | userData:
76 | assetBundleName:
77 | assetBundleVariant:
78 |
--------------------------------------------------------------------------------
/Final Game/Assets/Objects.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 445f42952cf2f7d409226e77c245c8e0
3 | folderAsset: yes
4 | timeCreated: 1521080813
5 | licenseType: Free
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/Grid.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Objects/Grid.prefab
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/Grid.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4d1762cb4c5d7984d92868078a3c4714
3 | timeCreated: 1521295599
4 | licenseType: Free
5 | NativeFormatImporter:
6 | mainObjectFileID: 100100000
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/GridLines.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Objects/GridLines.prefab
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/GridLines.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 22579ac98e506df4198bfe75d5c195db
3 | timeCreated: 1521309051
4 | licenseType: Free
5 | NativeFormatImporter:
6 | mainObjectFileID: 100100000
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/NumberInput.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Objects/NumberInput.prefab
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/NumberInput.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: af6848500336b77468f0304a3851038e
3 | timeCreated: 1521082157
4 | licenseType: Free
5 | NativeFormatImporter:
6 | mainObjectFileID: 100100000
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/QuitBtn.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Objects/QuitBtn.prefab
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/QuitBtn.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5e7ac64985eb2de429ce00dedcb249ab
3 | timeCreated: 1521252934
4 | licenseType: Free
5 | NativeFormatImporter:
6 | mainObjectFileID: -1
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/Row.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Objects/Row.prefab
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/Row.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: adc3a817c5b3c86489c0de8eea9b2cc3
3 | timeCreated: 1521295544
4 | licenseType: Free
5 | NativeFormatImporter:
6 | mainObjectFileID: 100100000
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/SelectionInput.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Objects/SelectionInput.prefab
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/SelectionInput.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7c774481e11bc5646842a8d5a94752a9
3 | timeCreated: 1521217542
4 | licenseType: Free
5 | NativeFormatImporter:
6 | mainObjectFileID: -1
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/StartBtn.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Objects/StartBtn.prefab
--------------------------------------------------------------------------------
/Final Game/Assets/Objects/StartBtn.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3f784820261a5884f9ccc9ee3486d59c
3 | timeCreated: 1521252934
4 | licenseType: Free
5 | NativeFormatImporter:
6 | mainObjectFileID: -1
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scenes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e6a1f7fc6a5944143bf9bfaea04389fc
3 | folderAsset: yes
4 | timeCreated: 1521047008
5 | licenseType: Free
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scenes/Level.unity:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Scenes/Level.unity
--------------------------------------------------------------------------------
/Final Game/Assets/Scenes/Level.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2a40e06e468dfa3438d5241e38b852a3
3 | timeCreated: 1521252618
4 | licenseType: Free
5 | DefaultImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scenes/Main.unity:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Umar-Eh/Sudoku-Unity/daffea7f9b65d19c0cc2fca5e0012773cf003da5/Final Game/Assets/Scenes/Main.unity
--------------------------------------------------------------------------------
/Final Game/Assets/Scenes/Main.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 11d6948b324c84a44b5546fcfa0ce8de
3 | timeCreated: 1521252868
4 | licenseType: Free
5 | DefaultImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scripts.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c3658f4e98d6c5a4f883b1c71c259734
3 | folderAsset: yes
4 | timeCreated: 1521252999
5 | licenseType: Free
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scripts/Erase.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | public class Erase : MonoBehaviour {
6 | public void eraseClicked(){
7 | if (GameManager.cellClicked != null && GameManager.cellClicked.playable != false) {
8 | GameManager.cellClicked.txtvalue.text = "";
9 | GameManager.cellClicked.txtvalue.color = Color.white;
10 | GameManager.squares.Add (GameManager.cellCoords [0]);
11 | GameManager.rows.Add (GameManager.cellCoords [1]);
12 | GameManager.columns.Add (GameManager.cellCoords [2]);
13 | GameManager.cellValues.Add (GameManager.cellClicked.txtvalue.text);
14 | GameManager.eraseCalled = true;
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scripts/Erase.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3f87e4e0f184afc458c8f056d7fc344e
3 | timeCreated: 1521412928
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scripts/GameManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using UnityEngine;
5 | using UnityEngine.UI;
6 | using UnityEngine.SceneManagement;
7 |
8 | public class GameManager : MonoBehaviour {
9 |
10 | public static NumberInput[,,] grid = new NumberInput[9,3,3];
11 | public static bool init= false;
12 | public static string clickedValue;
13 | public static int btnType;
14 | public static int chosenValue;
15 | public GetChildren childScript;
16 | public static NumberInput cellClicked;
17 | public static int[] cellCoords = new int[3];
18 | public static bool eraseCalled = false;
19 | private int count;
20 | public static List squares = new List();
21 | public static List rows = new List();
22 | public static List columns = new List();
23 | public static List cellValues = new List();
24 | public GameObject validatePanel;
25 | public GameObject restartPanel;
26 | public GameObject donePanel;
27 | public GameObject wrongSolutionPanel;
28 | public GameObject emptySolutionPanel;
29 | public GameObject correctSolutionPanel;
30 |
31 | static int[,,] sudoMatrix = { { { 0, 5, 2}, { 0, 0, 6}, { 1, 0, 8} }, { { 0, 7, 1 }, { 0, 4, 0 }, { 0, 0, 2 } }, { { 0, 4, 8}, { 1, 2, 5}, { 7, 0, 9} }, { { 2, 0, 5}, { 8, 0, 4}, { 6, 0, 7} }
32 | ,{ { 4, 9, 0}, { 0, 1, 6}, { 5, 8, 3} }, { { 8, 1, 6}, { 5, 3, 7}, { 2, 0, 4} }, { { 0, 2, 0}, { 7, 6, 1}, { 4, 0, 9} }, { { 7, 6, 4}, { 8, 0, 9}, { 0, 2, 5} }, { { 0, 8, 1}, { 4, 5, 2}, { 0, 7, 3} } };
33 |
34 | void Awake(){
35 | btnType = 9;
36 | }
37 |
38 |
39 | // Update is called once per frame
40 | void Update () {
41 | if (!init)
42 | initializeLevel ();
43 |
44 | if (eraseCalled) {
45 | childScript.gridcellClicked();
46 | eraseCalled = false;
47 | }
48 |
49 | if (Input.GetMouseButtonUp (0))
50 | buttonPressed ();
51 |
52 | }
53 |
54 | void initializeLevel(){
55 | validatePanel.SetActive (false);
56 | restartPanel.SetActive (false);
57 | donePanel.SetActive (false);
58 | wrongSolutionPanel.SetActive (false);
59 | emptySolutionPanel.SetActive (false);
60 | correctSolutionPanel.SetActive (false);
61 | count = 0;
62 | for (int square = 0; square < 9; square++) {
63 | for (int row = 0; row < 3; row++) {
64 | for (int column = 0; column < 3; column++) {
65 | grid [square, row, column] = childScript.cells [count];
66 | count++;
67 | }
68 | }
69 | }
70 | for (int square = 0; square < 9; square++) {
71 | for (int row = 0; row < 3; row++) {
72 | for (int column = 0; column < 3; column++) {
73 | if (sudoMatrix [square, row, column] != 0) {
74 | grid [square, row, column].txtvalue.text = "" + sudoMatrix [square, row, column];
75 | grid [square, row, column].playable = false;
76 | } else {
77 | grid [square, row, column].txtvalue.text = "";
78 | grid [square, row, column].playable = true;
79 | }
80 | }
81 | }
82 | }
83 | for (int i = 0; i < 81; i++) {
84 | childScript.cells[i].setColor();
85 | if (childScript.cells[i].playable)
86 | childScript.cells[i].txtvalue.text = "";
87 | }
88 |
89 | if (!init)
90 | init = true;
91 | }
92 |
93 | public void buttonPressed(){
94 |
95 | if (btnType == 0) {
96 | cellCoords [0] = childScript.cells.FindIndex (x => x == cellClicked) / 9;
97 | cellCoords [1] = (childScript.cells.FindIndex (x => x == cellClicked) / 3) - (3 * cellCoords [0]);
98 | cellCoords [2] = (childScript.cells.FindIndex (x => x == cellClicked) - (9 * cellCoords [0])) % 3;
99 | childScript.gridcellClicked ();
100 | btnType = 9;
101 | }
102 | }
103 |
104 | public void Undo(){
105 | if (squares.Count > 1) {
106 | grid [squares [squares.Count - 2], rows [rows.Count - 2], columns [columns.Count - 2]].txtvalue.text = cellValues [cellValues.Count - 2];
107 | squares.RemoveAt (squares.Count - 1);
108 | rows.RemoveAt (rows.Count - 1);
109 | columns.RemoveAt (columns.Count - 1);
110 | cellValues.RemoveAt (cellValues.Count - 1);
111 | }
112 | }
113 |
114 | public void DonePressed(){
115 | donePanel.SetActive (true);
116 | }
117 |
118 | public void DoneConfirmed(){
119 | donePanel.SetActive (false);
120 | for (int square = 0; square < 9; square++) {
121 | for (int row = 0; row < 3; row++) {
122 | for (int column = 0; column < 3; column++) {
123 | if (grid [square, row, column].txtvalue.text != "") {
124 | if (!Program.Checker (square, row, column)) {
125 | wrongSolutionPanel.SetActive (true);
126 | return;
127 | }
128 | } else {
129 | emptySolutionPanel.SetActive (true);
130 | return;
131 | }
132 | }
133 | }
134 | }
135 | correctSolutionPanel.SetActive (true);
136 | }
137 |
138 | public void correctPanelQuit(){
139 | correctSolutionPanel.SetActive (false);
140 | SceneManager.LoadScene ("Main");
141 | }
142 |
143 | public void wrongPanelClicked(){
144 | wrongSolutionPanel.SetActive (false);
145 | }
146 |
147 | public void emptyPanelClicked(){
148 | emptySolutionPanel.SetActive (false);
149 | }
150 |
151 | public void CancelDone(){
152 | donePanel.SetActive (false);
153 | }
154 |
155 | public void Validate(){
156 | validatePanel.SetActive (true);
157 | }
158 |
159 | public void ValidateClicked(){
160 | validatePanel.SetActive (false);
161 | if (cellClicked != null && cellClicked.txtvalue.text != "") {
162 | if (Program.Checker (cellCoords [0], cellCoords [1], cellCoords [2]))
163 | print ("true");
164 | else {
165 | print ("false");
166 | cellClicked.txtvalue.color = Color.red;
167 | }
168 | } else
169 | print ("null selected");
170 | }
171 |
172 | public void cancelValidate(){
173 | validatePanel.SetActive (false);
174 | }
175 |
176 | public void restartClicked(){
177 | restartPanel.SetActive (true);
178 | }
179 |
180 | public void restartYes(){
181 | restartPanel.SetActive (false);
182 | correctSolutionPanel.SetActive (false);
183 | init = false;
184 | clickedValue = "";
185 | btnType = 9;
186 | chosenValue = 0;
187 | cellClicked = null;
188 | squares.Clear ();
189 | rows.Clear ();
190 | columns.Clear ();
191 | cellValues.Clear ();
192 | }
193 |
194 | public void cancelRestat(){
195 | restartPanel.SetActive (false);
196 | }
197 |
198 |
199 | public void BackGroundClicked(){
200 | cellClicked = null;
201 | clickedValue = "";
202 | chosenValue = 0;
203 | }
204 |
205 | public void chooseNum(int i){
206 | btnType = 1;
207 | switch(i){
208 | default:
209 | break;
210 | case(0):
211 | chosenValue = 1;
212 | break;
213 | case(1):
214 | chosenValue = 2;
215 | break;
216 | case(2):
217 | chosenValue = 3;
218 | break;
219 | case(3):
220 | chosenValue = 4;
221 | break;
222 | case(4):
223 | chosenValue = 5;
224 | break;
225 | case(5):
226 | chosenValue = 6;
227 | break;
228 | case(6):
229 | chosenValue = 7;
230 | break;
231 | case(7):
232 | chosenValue = 8;
233 | break;
234 | case(8):
235 | chosenValue = 9;
236 | break;
237 | }
238 | clickedValue = ""+chosenValue;
239 | childScript.gridcellClicked ();
240 | if (cellClicked != null) {
241 | if (chosenValue != 0 && cellClicked.playable) {
242 | cellClicked.txtvalue.color = Color.white;
243 | if (cellClicked.txtvalue.text == "") {
244 | squares.Add(cellCoords[0]);
245 | rows.Add(cellCoords[1]);
246 | columns.Add(cellCoords[2]);
247 | cellValues.Add ("");
248 | }
249 | cellClicked.txtvalue.text = "" + chosenValue;
250 | childScript.gridcellClicked ();
251 | squares.Add(cellCoords[0]);
252 | rows.Add(cellCoords[1]);
253 | columns.Add(cellCoords[2]);
254 | cellValues.Add (cellClicked.txtvalue.text);
255 | chosenValue = 0;
256 | clickedValue = "";
257 | }
258 | }
259 | }
260 |
261 | }
262 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scripts/GameManager.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 581c90158786d3442a060d49ededff75
3 | timeCreated: 1521253870
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/Final Game/Assets/Scripts/GetChildren.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine.UI;
4 | using UnityEngine;
5 |
6 | public class GetChildren : MonoBehaviour {
7 | public Transform[] obj;
8 | public List cells;
9 | static ColorBlock cellColor;
10 | // Use this for initialization
11 | void Start () {
12 | obj = GetComponentsInChildren(true);
13 | foreach (Transform ob in obj)
14 | if (ob.tag == "cell" )
15 | cells.Add(ob.gameObject.GetComponent());
16 | }
17 |
18 | public void gridcellClicked(){
19 | foreach (NumberInput cell in cells) {
20 | if (cell.txtvalue.text == GameManager.clickedValue && GameManager.clickedValue != "") {
21 | cellColor = cell.GetComponent