Sudoku Game
- bshivam2001
- Posts: 214
- Joined: July 27th, 2013, 6:57 am
- Location: India
Sudoku Game
Hello Everyone,
Here I Present My First Self-Made Game: Sudoku
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
Here I Present My First Self-Made Game: Sudoku
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 361 times
-
- Debug.rar
- The Game
- (29.74 KiB) Downloaded 335 times
'If you can't make it good, at least make it look good'
Re: Sudoku Game
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.
- bshivam2001
- Posts: 214
- Joined: July 27th, 2013, 6:57 am
- Location: India
Re: Sudoku Game
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
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'
- bshivam2001
- Posts: 214
- Joined: July 27th, 2013, 6:57 am
- Location: India
Re: Sudoku Game
FIXED!!!
Just had to change the following line
to
Just had to change the following line
Code: Select all
else if(y == 9 && x == 9 && total[x][y] != BLANK)
return true;
Code: Select all
else if(y == 9 && x == 9 && total[x][y] != BLANK && !isSelected)
return true;
- Attachments
-
- Debug.rar
- (28.7 KiB) Downloaded 311 times
'If you can't make it good, at least make it look good'
Re: Sudoku Game
Hi bshivam2001.
Its been a long time since i played one of these
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 )
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.
Its been a long time since i played one of these
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 )
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.
Re: Sudoku Game
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 )
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 --
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 --
- bshivam2001
- Posts: 214
- Joined: July 27th, 2013, 6:57 am
- Location: India
Re: Sudoku Game
Thank You for the suggestions,SunShine wrote:Hi bshivam2001.
Its been a long time since i played one of these
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 )
But, I'm too lazy to touch that project again
Anyway, thanks for trying my game
'If you can't make it good, at least make it look good'
Re: Sudoku Game
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
Re: Sudoku Game
Wow! Very nice! That's by far the most badass Sudoku game I've ever played