Author Topic: Sudoku homebrew  (Read 2293 times)

srmeier (OP)

  • Posts: 4
    • Personal site
Sudoku homebrew
« on: August 22, 2014, 02:11:11 pm »
I was really excited to hear about this weeks firmware update  :). I typically work with SDL2 so this update was a big deal for me.

A few weeks ago I was part of a 72hr gamejam with some friends. This retro Sudoku game is a product of that gamejam. I had recently received my GCW so this gave me a chance to play around with it. If anyone is interested in putting together a gamejam let me know!

This Sudoku implementation uses a backtracking algorithm to ensure each board has a unique solution. The backtracker updates the board in real-time so you can observe the algorithm as it searches for a solution (best part imo  8)).

The music is really bad, as I only had 72hrs to get everything together, so I recommend turning the volume wayy down lol. I've attached the .opk and .zip so ideally all the resources needed to play and compile should be there. If there are any major bugs let me know and I'll try to correct them.

This would perhaps be a great starting point for someone looking to write a legit Sudoku game for the GCW. From what I've read, the hardest part may be setting difficulty levels, but there are some ad hoc approaches described online.

I have another project I'm working on and look forward to sharing soon!

OPK: http://stephenmeier.net/files/sudoku.opk
ZIP: http://stephenmeier.net/files/sudoku.zip
GIF: http://gfycat.com/YawningBabyishElephantseal

Kouen Hasuki

  • Posts: 155
Re: Sudoku homebrew
« Reply #1 on: August 23, 2014, 10:25:04 am »
Nice! I'll grab a copy now and load it onto my zero though I have Zero clue how to play Sudoku lol

zear

  • * Moderator
  • Posts: 2381
Re: Sudoku homebrew
« Reply #2 on: August 23, 2014, 12:06:59 pm »
This game is pretty fun, nice job!

I just wish it didn't use copyrighted sprites from Legend of Zelda, so we could upload it to the official repository. Maybe you could use some sprites from http://opengameart.org instead that have appropriate licenses?

Gab1975

  • Posts: 1165
Re: Sudoku homebrew
« Reply #3 on: August 23, 2014, 12:45:42 pm »
Moreover from http://opengameart.org you can find also a suitable bgm for your game... hereunder an example:
http://opengameart.org/content/jump-and-run-tropical-mix

EDIT: I made a test, I converted the bgm of the example into an uncompressed wave (44,1 KHz, 16 bit, Stereo) , it takes up about 6 Mbytes: https://www.sendspace.com/file/srqc05
« Last Edit: August 23, 2014, 01:06:15 pm by Gab1975 »

zear

  • * Moderator
  • Posts: 2381
Re: Sudoku homebrew
« Reply #4 on: August 23, 2014, 02:37:45 pm »
EDIT: I made a test, I converted the bgm of the example into an uncompressed wave (44,1 KHz, 16 bit, Stereo) , it takes up about 6 Mbytes: https://www.sendspace.com/file/srqc05
SDL_mixer can play OGG just fine.

Gab1975

  • Posts: 1165
Re: Sudoku homebrew
« Reply #5 on: August 23, 2014, 05:24:44 pm »
SDL_mixer can play OGG just fine.

Of course, moreover with the ogg file there is a remarkable "memory saving" ! ;)

@srmeier: I noticed that for the game icon you used your "avatar png"... in the case you want to use a specific icon, I made a simple alternative png (in two color variations)...
« Last Edit: August 23, 2014, 05:40:28 pm by Gab1975 »

srmeier (OP)

  • Posts: 4
    • Personal site
Re: Sudoku homebrew
« Reply #6 on: August 23, 2014, 06:22:27 pm »
@zear: definitely! Opengameart looks amazing, I'll look for fitting sprites and make the updates to the game. It would be really cool to get this on the official repository! I'll post here with future updates.

@Gab1975: Very nice icons! I'll be using them for sure, thanks! Also, good to know Opengameart has music to choose from, I'll pick something from there to use as bgm.

Thanks again guys! I'll post an update soon. This will also give me a chance to clean up the code a bit as well  :)

 

Post a new topic