Minh T. Nguyen

        "Enemy's Gate Is Down"
Search this site:

Minh Tri Nguyen Minh T. Nguyen enderminh Vietnamese nguyentriminh blog Visual Studio .NET Tips and Tricks Nguyễn Trí Minh
posts - 220, comments - 2422, trackbacks - 138
Bookmark and Share

Minh T. Nguyen's Sudoku3D

I’ve already played with XAML almost a year ago when it was still in the early stages, but over my winter break, I spent some time getting my hands dirty with the 3D aspects of Microsoft’s XAML/Windows Presentation Framework. I decided to create a 3D version of the famous Japanese Sudoku game, and pretty much finished coding 90% of it already in December 2006, but it’s not until today that I finally found the time to wrap up the code, the user interface and fix all the pending bugs.

So, here it is: Minh T. Nguyen’s Sudoku3D

Minh T. Nguyen's Sudoku 3D

The Game

Just like in regular Sudoku, you need to fill in a row, column and “height column” of the cube with all natural numbers, so that each number appears once and only once. Unfortunately, the third rule of Sudoku (that a given 3x3 sub-square of a 9x9 Sudoku square contains all 9 numbers) does not translate into the third dimension. For instance, in a 4x4x4 Sudoku cube the 2x2x2 sub-cube has eight cells, not four. I therefore had to get rid of the third rule, which makes playing this game not as fun as I expected it to be. If anyone has any insightful suggestions on how to translate the third Sudoku rule into the third dimension, let me know.

Requirements

This game requires Internet Explorer as well as the Microsoft .NET 3.0 (which comes pre-installed with Windows Vista but is available as a separate download for other Windows systems). A fast and powerful computer running Windows Vista is preferred, as the Sudoku generation for large cubes can be very CPU-consuming (in fact, I don’t even allow you to generate cubes larger than 5x5x5 even though it’s theoretically possible). In addition, the graphics just looks much smoother on Vista since 3D anti-aliasing is only enabled there.

Development

Coding this game has been pretty fun. The hardest part of this all was actually not the 3D aspects of this, but the Sudoku generation algorithm itself. I never realized that creating a valid Sudoku is actually much harder than solving one. In the end, I’ve opted for a backtracking algorithm using a stack of intermediate steps that can be undone in conjunction with a 3D matrix of possible moves. Fun stuff.

Hope you all will enjoy playing this game as much as I enjoyed coding it!

posted on Monday, February 05, 2007 9:00 PM

Feedback

# re: Minh T. Nguyen's Sudoku3D

Forgive me if I'm stupidly overlooking something, but don't you just want an 8x8x8 Sudocube? The 8x8x8 Sudocube would have 4x4x4 sub-cubes, each one being 2x2x2. That way all the criteria still apply.

Basically a 2D Sudoku must be x*x by x*x and have x subboxes in each direction, each of which measures x by x.

A 3D Sudocube must be x*x*x by x*x*x by x*x*x and have x*x subboxes in each direction, each of which measures x by x by x.

Think about what I just said, and you will understand why it must be that way.

The smallest sudocube that meets these requirements is x = 2.

I realise 8x8x8 is much larger than your current algorithm allows, but that is the only way a real Sudocube will work.
2/7/2007 4:16 AM | Carl Kenner

# re: Minh T. Nguyen's Sudoku3D

Of course, I could go one better and make 4D Sudoku.
The requirements for 4D Sudoku are obviously that it must be x^4 by x^4 by x^4 by x^4, and must have x^3 subboxes in each direction, each of which measures x by x by x by x.

The smallest 4D Sudoku would therefore be 16x16x16x16 and have 8 subboxes in each direction, each one being 2x2x2x2.

Of course that is 65,536 squares in total. So it would take a lifetime to complete. Not to mention that you would have to use a hexadecimal digit 0-F in each box :-)

Some games just don't scale well to more dimensions.

Noughts and Crosses (Tic-Tac-Toe) on the other hand is an excellent game to play in multiple dimensions. I highly recommend 6 dimensional Noughts and Crosses (3x3x3x3x3x3). Obviously you play for a certain number of points rather than stopping when someone gets a line. It is great fun when I've played it with people. I haven't tried more than two players, but it would probably work just as well with 3 players.
2/7/2007 4:29 AM | Carl Kenner

# Random Updates for March 2007

3/3/2007 12:10 PM | Minh T. Nguyen

# Random Updates for March 2007

3/3/2007 12:18 PM | Minh T. Nguyen

# re: Minh T. Nguyen's Sudoku3D

If you want to try out something new in sudoku, try shendoku, using the sudoku rules but playing two people, one against the other, like battleshipps. They have a free version to download at http://www.shendoku.com/sample.pdf . Anything else they are bringing out or they are working on you can find at www.shendoku.com or at they´r blog www.shendoku.blogspot.com . Have fun, I am. I specially like one slogan I heard about Shendoku: SUDOKU is like masturbation (on your own)…. SHENDOKU is like sex (it takes two).
10/15/2007 4:49 PM | armando

# re: Minh T. Nguyen's Sudoku3D

I was anxious to try this, but it won't load as my version of Vista has the .NET framework version 3.5, which is a later version. I can only assume that the program checks for the .NET 3.0, but won't allow any later versions to run it. It would be nice to actually have the code, but I realize that's probably too much to ask right now. It would really be nice if it would run with version 3.5 though..
12/23/2008 9:38 AM | GMorris

# Thanks canım. :)

Thanks for sharing man.
2/1/2010 11:46 AM | Porno izle

# re: Minh T. Nguyen's Sudoku3D

he haci=)
2/11/2010 7:06 AM | Jakess

# re: Minh T. Nguyen's Sudoku3D

sögürtün
2/11/2010 8:40 AM | tarot

# re: Minh T. Nguyen's Sudoku3D

Thanks
2/12/2010 4:26 AM | chat sitesi

# re: Minh T. Nguyen's Sudoku3D

Thank you very much for sharing.!
2/12/2010 7:50 AM | chat sohbet

# re: Minh T. Nguyen's Sudoku3D

thanks admin super share
2/12/2010 11:24 AM | sikiş izle

# re: Minh T. Nguyen's Sudoku3D

<a href="http://www.vidioizlee.com" title="dizi izle , video izle , film"> dizi izle www.vidioizlee.com</a>
thanks
2/12/2010 11:52 AM | vidoizlee

# re: Minh T. Nguyen's Sudoku3D

love enderminh
3/11/2010 10:05 AM | film izle

# re: Minh T. Nguyen's Sudoku3D

thank
3/11/2010 2:52 PM | mirc

# re: Minh T. Nguyen's Sudoku3D

thank
3/11/2010 2:53 PM | mirc

# re: Minh T. Nguyen's Sudoku3D

Thank you very rich indeed a site
3/14/2010 1:46 PM | program indir

# re: Minh T. Nguyen's Sudoku3D

thanks
3/14/2010 4:06 PM | divx film izle

# re: Minh T. Nguyen's Sudoku3D

tahanks..
3/18/2010 1:41 AM | fallar

# re: Minh T. Nguyen's Sudoku3D

Minh T. Nguyen's Sudoku3Dis good
3/22/2010 12:34 AM | 70-431

# re: Minh T. Nguyen's Sudoku3D

Think about what I just said, and you will understand why it must be that way.

The smallest sudocube that meets these requirements is x = 2.
3/22/2010 12:35 AM | 70-432

# re: Minh T. Nguyen's Sudoku3D

I was anxious to try this, but it won't load as my version of Vista has the .NET framework version 3.5, which is a later version. I can only assume that the program checks for the .NET 3.0, but won't allow any later versions to run it. It would be nice to actually have the code, but I realize that's probably too much to ask right now. It would really be nice if it would run with version 3.5 though..
3/22/2010 12:36 AM | microsoft exam 70-536

# re: Minh T. Nguyen's Sudoku3D

The smallest sudocube that meets these requirements is x = 2.
3/22/2010 12:37 AM | n10-004 braindump

# re: Minh T. Nguyen's Sudoku3D

good info thanks..
3/25/2010 11:32 AM | tarot

# re: Minh T. Nguyen's Sudoku3D

mp3 dinle, online mp3 dinle, bedava mp3 dinle
4/7/2010 2:30 PM | online mp3 dinle

# re: Minh T. Nguyen's Sudoku3D

video izle
4/7/2010 2:30 PM | video izle

# Bankruptcy Attorneys

the game is very complicated that i am unable to understand it
5/27/2010 6:45 AM | Elizabeth Young

# florida injury lawyer

good to hear that but till now i not even know how it can be played
5/27/2010 11:09 AM | florida injury lawyer

# re: Minh T. Nguyen's Sudoku3D

Thanks
6/8/2010 11:15 AM | oyun

# ttnet adsl basvuıu

very nice article.
6/14/2010 12:06 AM | ttnet adsl basvuıu

# # re: Minh T. Nguyen's Sudoku3D

its a great invention but till now i not even how to play it even in paper
6/14/2010 12:21 AM | seo los angeles

# re: Minh T. Nguyen's Sudoku3D

such interesting post, thank you

http://www.hollywoodcar.ma - http://www.perlebleutours.net - http://www.aiti-car.com
6/20/2010 6:57 PM | aloe vera maroc

# re: Minh T. Nguyen's Sudoku3D

Hey admin, very informative blog post! Pleasee continue this awesome work

http://www.location-de-voiture.ma - http://www.agence-media.com - http://www.bnpparibas-medit.ma
6/20/2010 7:02 PM | aloe vera maroc

# re: Minh T. Nguyen's Sudoku3D

nice topic

http://www.riadlolahalima.com
6/20/2010 7:04 PM | riad meknes

# re: Minh T. Nguyen's Sudoku3D

thanx dude
6/24/2010 4:35 PM | saglik bilgileri

# re: Minh T. Nguyen's Sudoku3D

thank you so much dude
6/24/2010 4:36 PM | saglik

# re: Minh T. Nguyen's Sudoku3D

very good man i like it
6/24/2010 4:41 PM | Ayak Şişmesinin Nedenleri

# re: Minh T. Nguyen's Sudoku3D

thank you
6/25/2010 8:38 AM | web tasarım hititajans

# re: Minh T. Nguyen's Sudoku3D

thank you
6/25/2010 8:39 AM | turkeytour

# re: Minh T. Nguyen's Sudoku3D

thank you
6/25/2010 8:39 AM | moda

# re: Minh T. Nguyen's Sudoku3D

nice system.thanks
6/28/2010 11:08 AM | liseli pornosu

# re: Minh T. Nguyen's Sudoku3D

this is good site to improve thinking capacity . here we can have Sudoku3d for mind setting .

thanks and regards
<a href="http://dangersoflaserhairremovals.com/">dangers of laser hair removal</a> - <a href="http://ebayhomebasedbusiness.com/">ebay home based business</a>
6/29/2010 3:17 AM | dangers of laser hair removal

# re: Minh T. Nguyen's Sudoku3D

Hello,I love reading through your blog, I wanted to leave a little comment to support you and wish you a good continuation, or when I read your lines I found your article very interested, thank you for sharing.Regards
7/1/2010 1:35 AM | jeux cadeaux gratuit

# re: Minh T. Nguyen's Sudoku3D

Thanks for telling game. I now better understand how the game is played.
7/4/2010 4:47 AM | tatil

# re: Minh T. Nguyen's Sudoku3D

thank you for sharing... regards
7/4/2010 5:59 AM | sirket arama

# re: Minh T. Nguyen's Sudoku3D

This may be a pretty nice websites.
I have bookmarked this particular page and also I’ll notify my friends about this.
7/4/2010 6:04 AM | chat

# re: Minh T. Nguyen's Sudoku3D

This may be a pretty nice websites.
7/4/2010 2:31 PM | chat

# re: Minh T. Nguyen's Sudoku3D

Those Jackson kids are adorable! What! No mention of Pink's outstanding performance--twirling and splashing water on all the celebs (help I'm melting) Her voice never quivered. Unlike, Taylor and Stevie--never liked Stevie I think her voice is awful. I do a great impersonation -- kinda Katherine Hepburn and Joan Rivers mixed together --volatile.



film izlemek için http://www.filmshared.com/
7/7/2010 9:07 AM | film izle

# re: Minh T. Nguyen's Sudoku3D

ücretsiz mp3 indir
7/7/2010 3:42 PM | ücretsiz mp3 indir

# re: Minh T. Nguyen's Sudoku3D

mp3 indir
7/7/2010 3:43 PM | mp3 indir

# re: Minh T. Nguyen's Sudoku3D

bedava mp3 indir
7/7/2010 3:43 PM | bedava mp3 indir

# re: Minh T. Nguyen's Sudoku3D

oyun indir
7/7/2010 3:44 PM | oyun indir

# oyun siteleri

sagol adminim
7/14/2010 1:36 AM | oyun siteleri

# re: Minh T. Nguyen's Sudoku3D

süper bir site
7/14/2010 1:36 AM | oyun siteleri

# re: Minh T. Nguyen's Sudoku3D

süperr yaw <a href="http://www.5oyun.net/oyuncehennemi" title="oyuncehennemi,oyuncehennemi oyna" target="_blank">oyuncehennemi</a>

<a href="http://www.oyunjet.net/oyuncehennemi-oyna" title="oyuncehennemi,oyuncehennemi oyna" target="_blank">oyuncehennemi</a>
7/14/2010 1:37 AM | oyun siteleri

# re: Minh T. Nguyen's Sudoku3D

Thanks for title man ! :)
7/15/2010 1:57 AM | Sinema izle

# re: Minh T. Nguyen's Sudoku3D

Good job !
7/15/2010 1:57 AM | Forum Sitesi

# re: Minh T. Nguyen's Sudoku3D

sagolasin be admin
7/16/2010 6:52 AM | www.aslanmax.com

# re: Minh T. Nguyen's Sudoku3D

http://www.bestpriceforsales.com
good post. thank you...!
7/16/2010 7:14 PM | iba01

# re: Minh T. Nguyen's Sudoku3D

<a href="http://www.hadifilmizle.com" title="film izle, online film izle">Film izle</A>
7/17/2010 4:41 AM | Film izle

# re: Minh T. Nguyen's Sudoku3D

www.h0bi.com
7/17/2010 6:50 AM | Film izle

# re: Minh T. Nguyen's Sudoku3D

thanks
nice blog
7/19/2010 8:13 AM | medyum

# re: Minh T. Nguyen's Sudoku3D

Thanks.

http://cshane.tk cs hileleri
http://tripkolik.tk tripkolik
7/19/2010 12:33 PM | sxe cfg

# re: Minh T. Nguyen's Sudoku3D

Thanks for title man!
7/20/2010 3:51 AM | Forum

# re: Minh T. Nguyen's Sudoku3D

sagol adminim
7/20/2010 11:24 AM | müjde ar

# re: Minh T. Nguyen's Sudoku3D

Thanks for title man!
7/20/2010 12:08 PM | eskort

# re: Minh T. Nguyen's Sudoku3D

Www.ForumSevgisi.Com
7/22/2010 1:17 AM | ForumSevgisi.Com

# re: Minh T. Nguyen's Sudoku3D

Thank you very much.
7/22/2010 8:16 AM | kucuk sirlar dizisi

# re: Minh T. Nguyen's Sudoku3D

thanks...
7/22/2010 11:33 PM | porno

# re: Minh T. Nguyen's Sudoku3D

thanks..
7/22/2010 11:35 PM | sikiş

# thanks admin good job

thanks admin good job
7/23/2010 5:57 AM | Freecardsharing

# thanks admin good job

thanks admin good job
7/23/2010 5:58 AM | Freecardsharing

# thanks admin good job

thanks admin good job
7/23/2010 5:59 AM | Skin Care

# thanks admin good job

thanks admin good job
7/23/2010 6:01 AM | yutube

# re: Minh T. Nguyen's Sudoku3D

thanks admin you are job :D
7/23/2010 7:31 PM | Sikiş

# re: Minh T. Nguyen's Sudoku3D

Hi,
I really like your topic .. Topics I've shared your facebook .. Thank you very much again .. In addition, I gave my site a few below, if you like it, you'll be glad to sites in and make comments.

7/23/2010 7:32 PM | SikiÅŸ

# re: Minh T. Nguyen's Sudoku3D

<a href="http://www.sanalturkey.com">Hosting</a>
good system thanks admin
7/24/2010 7:22 AM | Hosting

# re: Minh T. Nguyen's Sudoku3D

<a href="http://www.ankaraevdenevee.net">ankara evden eve</a>
good system thanks admin see you later ;)
7/24/2010 7:23 AM | ankara evden eve nakliyat

# re: Minh T. Nguyen's Sudoku3D

thanks for sharing...
7/26/2010 2:25 PM | medyum

# re: Minh T. Nguyen's Sudoku3D

thank you very much for post. i will come back.
7/27/2010 7:48 AM | film izle

# http://bedava-ya.blogspot.com

Thanks tesekkürler Thanks tesekkürler Thanks tesekkürler
8/2/2010 5:24 AM | Bedava

# arabesk rap indir

Thank you very much for this information.
Good post thanks for sharin.
I like this site ..
8/4/2010 1:34 PM | arabesk rap

# re: Minh T. Nguyen's Sudoku3D

n copy and paste ink to and from other ink-enabled applications like Windows Journal and also save your messages as a GIF file or as text file provided that operating system has a text-recognition eng
8/4/2010 3:07 PM | Promotional Items

# re: Minh T. Nguyen's Sudoku3D

gotta get away .. get away
8/7/2010 2:06 AM | 18 film izle

# re: Minh T. Nguyen's Sudoku3D

ah su site bi cossa :)
8/7/2010 5:06 AM | rokettube

# re: Minh T. Nguyen's Sudoku3D

very nice..
8/7/2010 6:00 AM | Şiirler

# re: Minh T. Nguyen's Sudoku3D

thanks admin..
8/7/2010 6:01 AM | Kral Oyun

# re: Minh T. Nguyen's Sudoku3D

thanks
8/8/2010 1:25 PM | sarki dinle

# re: Minh T. Nguyen's Sudoku3D

very nice..
8/10/2010 6:02 AM | Turkey Culture

# Mr

I was anxious to try this, but it won't load as my version of Vista has the .NET framework version 3.5, which is a later version. I can only assume that the program checks for the .NET 3.0, but won't allow any later versions to run it. It would be nice to actually have the code, but I realize that's probably too much to ask right now. It would really be nice if it would run with version 3.5 though.. <a href="http://www.frames4sale.com/">Versace Eyeglasses</a>
8/15/2010 12:10 AM | Versace Eyeglasses

# re: Minh T. Nguyen's Sudoku3D

Think about what I just said, and you will understand why it must be that way.

The smallest sudocube that meets these requirements is x = 2. <a href="http://www.olmafood.com/">Wholesale_Food_Products</a>
8/15/2010 12:27 AM | Wholesale_Food_Products

# re: Minh T. Nguyen's Sudoku3D

Thank you very rich indeed a site <a href="http://www.printingforu.com/">Offset Printing</a>
8/15/2010 12:35 AM | Offset Printing

# re: Minh T. Nguyen's Sudoku3D

I was anxious to try this, but it won't load as my version of Vista has the .NET framework version 3.5, which is a later version. I can only assume that the program checks for the .NET 3.0, but won't allow any later versions to run it. It would be nice to actually have the code, but I realize that's probably too much to ask right now. It would really be nice if it would run with version 3.5 though.. <a href="http://www.newhopefertility.com/fertility-center/New-Jersey-doctors.shtml">Infertility Doctors in New Jersey</a>
8/15/2010 12:45 AM | Infertility Doctors in New Jersey

# re: Minh T. Nguyen's Sudoku3D

mp3 dinle, online mp3 dinle, bedava mp3 dinle <a href="http://www.newhopedonoreggs.com/">Fertility Center New York</a>
8/15/2010 12:55 AM | Fertility Center New York

# re: Minh T. Nguyen's Sudoku3D

Thank you for this wonderful article.I hope all continues like this quality.
8/24/2010 7:47 AM | porno film

# porno

Think about what I just said, and you will understand why it must be that way.
8/25/2010 6:25 AM | porno

# re: Minh T. Nguyen's Sudoku3D

Thanks for sharing man.
8/26/2010 3:39 PM | Agel

# re: Minh T. Nguyen's Sudoku3D

<a href="http://www.yorumlasak.biz/2010-kyk-burs-ogrenim-ve-kredi-basvuru-sonuclari-kyk-sonuclari-aciklandi.html" title="kyk sonuçlari, 2010 kyk sonuç" target="_blank">KYK Sonuçlari</a>
9/1/2010 12:34 PM | Kyk Sonuçları

Post Comment

Title  
Name  
Url
Comment   
Protected by Clearscreen.SharpHIPEnter the code you see: