Sudoku Game

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Sudoku Game

Post by bshivam2001 » August 17th, 2013, 11:06 am

Hello Everyone,
Here I Present My First Self-Made Game: Sudoku :D :)

Features:
Mistake Highlighter
Main Menu
Uses Only Keyboard

I am attaching my code and the executable file
When you are compiling, ignore all the warning
WARNING: The code is very messy


Suggestions are welcome
Report Any Bugs Here


Please give comments those who downloded
Attachments
Sudoku.rar
The Game Project Files
(40.04 KiB) Downloaded 357 times
Debug.rar
The Game
(29.74 KiB) Downloaded 332 times
'If you can't make it good, at least make it look good'

astr0
Posts: 87
Joined: July 21st, 2012, 8:43 pm
Location: Serbia

Re: Sudoku Game

Post by astr0 » August 19th, 2013, 8:56 am

well it's nice a bit easy but ok :) i think i saw one bug at the end. i left 1 more field to put number into it and when i pressed enter it said wrong answer... i didn't get chance to change number and press enter which would be my final answer. i am lazy to play once again to see did i pressed enter 2 times rapidly and didn't noticed that. anyway check that last field case :)
Programming is my art.

User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Re: Sudoku Game

Post by bshivam2001 » August 24th, 2013, 8:07 pm

NO, its a bug and you didn't press Enter two times.
Thank You astr0 for telling me about the bug, I'll try to fix it.
Cheers,
bshivam2001
'If you can't make it good, at least make it look good'

astr0
Posts: 87
Joined: July 21st, 2012, 8:43 pm
Location: Serbia

Re: Sudoku Game

Post by astr0 » August 24th, 2013, 10:06 pm

you are wellcome
Programming is my art.

User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Re: Sudoku Game

Post by bshivam2001 » August 27th, 2013, 4:09 pm

FIXED!!! 8-)

Just had to change the following line

Code: Select all

else if(y == 9 && x == 9 && total[x][y] != BLANK)
				return true;
to

Code: Select all

else if(y == 9 && x == 9 && total[x][y] != BLANK && !isSelected)
				return true;
:lol: :lol: :lol:
Attachments
Debug.rar
(28.7 KiB) Downloaded 308 times
'If you can't make it good, at least make it look good'

User avatar
SunShine
Posts: 31
Joined: February 16th, 2013, 2:44 pm

Re: Sudoku Game

Post by SunShine » August 27th, 2013, 7:09 pm

Hi bshivam2001.

Its been a long time since i played one of these :lol:
Prety nice sudoku game, I like it.

I took a glance at your project. You wrote that you couldnt use numbers in the enum BOXSTATE.
Well instead of A, B, C, D .. you can use _1, _2, _3, _4 .. ( if you want ofcourse :D )

Suggestion:
Your window opens in the top left corner of the screen, and for people with big monitors ( like me, lul )
its kind of anoying to look at the top left of your screen all the times. Atleast for me it would be better if the window opened at the center of the screen. You can use the function - GetSystemMetrics( .. ) and a little bit of calculations to place the window at the center. ;)

User avatar
LuisR14
Posts: 1248
Joined: May 23rd, 2013, 3:52 pm
Location: USA
Contact:

Re: Sudoku Game

Post by LuisR14 » August 27th, 2013, 8:28 pm

or you could let windows handle it by using CW_USEDEFAULT for both the position and size in CreateWindow(Ex) (less likely on the size than position obviously :P)
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat :mrgreen: --

User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Re: Sudoku Game

Post by bshivam2001 » August 31st, 2013, 6:19 pm

SunShine wrote:Hi bshivam2001.

Its been a long time since i played one of these :lol:
Prety nice sudoku game, I like it.

I took a glance at your project. You wrote that you couldnt use numbers in the enum BOXSTATE.
Well instead of A, B, C, D .. you can use _1, _2, _3, _4 .. ( if you want ofcourse :D )
Thank You for the suggestions,
But, I'm too lazy to touch that project again :lol: 8-)
Anyway, thanks for trying my game
'If you can't make it good, at least make it look good'

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Sudoku Game

Post by chili » September 6th, 2013, 3:55 am

Nice work. I'm very salty right now though. Got to the end and it automatically entered 1, told me the answer was wrong, and then promptly crashed. Seems there is a fixed version out now. Ah well. ;p
Chili

clau007
Posts: 15
Joined: July 30th, 2013, 8:36 pm
Location: Italy

Re: Sudoku Game

Post by clau007 » September 8th, 2013, 10:12 am

Wow! Very nice! That's by far the most badass Sudoku game I've ever played :D

Post Reply