Difference between revisions of "Sudoku"

From WiiBrew
Jump to navigation Jump to search
Line 6: Line 6:
 
| author      = dlkj
 
| author      = dlkj
 
| display    =  
 
| display    =  
| download    = [http://wiisudoku.googlecode.com/files/sudoku.tar.gz sudoku.tar.gz v0.1a]
+
| download    = [http://wiisudoku.googlecode.com/files/sudoku01b.tar.gz v0.1b]
| source      = [http://wiisudoku.googlecode.com/files/sudoku_src.tar.gz sudoku_src.tar.gz]
+
| source      = [http://wiisudoku.googlecode.com/files/sudoku01b_src.tar.gz sudoku01b_src.tar.gz]
| peripherals = {{Wiimote1}}
+
| peripherals = {{Wiimote1}} {{FrontSD}}
 
}}
 
}}
  
Line 20: Line 20:
  
 
==Details==
 
==Details==
Presently at version 0.1a of the game, the following has been implemented.
+
Presently at version 0.1b of the game, the following has been implemented.
 
*generation of classic 9x9 sudoku puzzle (no difficulty control)
 
*generation of classic 9x9 sudoku puzzle (no difficulty control)
 
*save and continue of puzzle
 
*save and continue of puzzle
 
*auto checking of the puzzle for incorrect cells
 
*auto checking of the puzzle for incorrect cells
 +
*[http://wiisudoku.googlecode.com/files/sudoku_snap-0.1b.png screenshot] capability
 +
*menu system
  
 
The puzzle is controlled by moving an on screen cursor. The cursor will wraparound the edges of the puzzle if you try to move past the edge.
 
The puzzle is controlled by moving an on screen cursor. The cursor will wraparound the edges of the puzzle if you try to move past the edge.
Line 36: Line 38:
 
Hold the [http://en.wikipedia.org/wiki/Wiimote WiiMote] sideways as per [+ : oo] (NES Style)
 
Hold the [http://en.wikipedia.org/wiki/Wiimote WiiMote] sideways as per [+ : oo] (NES Style)
 
*Directional Pad (D Pad) to control navigation
 
*Directional Pad (D Pad) to control navigation
*'home' button exits game
+
*'home' button displays menu
 
*'1' button decrements number
 
*'1' button decrements number
 
*'2' button increments number
 
*'2' button increments number
*'+' button resets game and generates new random board
+
*'+' button screen captures (if enabled)
 
*'-' button saves game to SD card
 
*'-' button saves game to SD card
 
*'A' button toggles 'uncertain' marking for the cells.
 
*'A' button toggles 'uncertain' marking for the cells.
Line 47: Line 49:
 
Credit where credit is due..
 
Credit where credit is due..
  
The guys at #wiidev who are always entertaining and give good advice (as far as wii development is concerned)
+
The guys at #wiidev who are always [[Channel_FAQ/Hall_Of_Shame|entertaining]] and give good advice (as far as wii development is concerned)
  
 
Sudoku Puzzle generator currently uses [http://ssuds.sourceforge.net/ ssudg]. This might change in the future after further investigation of suitable alternatives.
 
Sudoku Puzzle generator currently uses [http://ssuds.sourceforge.net/ ssudg]. This might change in the future after further investigation of suitable alternatives.
  
 
libraries used
 
libraries used
*libogc
+
*libogc/libfat
*libfat
+
*pngu/libpng
*libpng
+
*freetype2
  
 
GIMP was used to create the tiles graphics and also the hbc channel label.
 
GIMP was used to create the tiles graphics and also the hbc channel label.
 +
 +
devkitPro was used to build the program.
 +
 
Continuum font was used in the hbc label.
 
Continuum font was used in the hbc label.
 +
 +
Bitstream Vera was used in the menus
  
 
==Coming soon==
 
==Coming soon==
  
 
The following are under development. Suggestions and patches welcome.
 
The following are under development. Suggestions and patches welcome.
*Menu system
+
*varying difficulty levels
*screen capture capability
+
*power off via wiimote power button
 
*alternate tileset
 
*alternate tileset

Revision as of 16:39, 20 June 2008

Sudoku
General
Author(s)dlkj
TypeGame
Links
[[v0.1b|Download]]
[[sudoku01b_src.tar.gz|Source]]
Peripherals
Wiimote1.svg Loads files from the Front SD slot


Introduction

Figure out the correct placement of all the numbers.

This project implements a simple sudoku game on the wii. The recommended way to launch this is via the homebrew channel. Control is via the standard wiimmote (1 player only) held sideways.

The project is open source with plans for as open a license as possible. However, certain subcomponents may have licensing restrictions which affect the license of the project as a whole. Further study on this item required before license terms are finalized.

Details

Presently at version 0.1b of the game, the following has been implemented.

  • generation of classic 9x9 sudoku puzzle (no difficulty control)
  • save and continue of puzzle
  • auto checking of the puzzle for incorrect cells
  • screenshot capability
  • menu system

The puzzle is controlled by moving an on screen cursor. The cursor will wraparound the edges of the puzzle if you try to move past the edge.

The value under the cursor is incremented/decremented to the desired value. Value '0' is shown as a blank cell. Values are wraparound from 0 to 9 as well.

If desired, the user may mark a cell as 'uncertain' by pressing the 'A' button. This can be toggled off if desired via the same button. 'uncertain' cells are marked with a gray background.

The game will check for any incorrect cells (i.e. duplicate numbers in any row, column or 3x3 cell). Any incorrect cells will be highlighted with a red tint.

Controls

Hold the WiiMote sideways as per [+ : oo] (NES Style)

  • Directional Pad (D Pad) to control navigation
  • 'home' button displays menu
  • '1' button decrements number
  • '2' button increments number
  • '+' button screen captures (if enabled)
  • '-' button saves game to SD card
  • 'A' button toggles 'uncertain' marking for the cells.

Credits

Credit where credit is due..

The guys at #wiidev who are always entertaining and give good advice (as far as wii development is concerned)

Sudoku Puzzle generator currently uses ssudg. This might change in the future after further investigation of suitable alternatives.

libraries used

  • libogc/libfat
  • pngu/libpng
  • freetype2

GIMP was used to create the tiles graphics and also the hbc channel label.

devkitPro was used to build the program.

Continuum font was used in the hbc label.

Bitstream Vera was used in the menus

Coming soon

The following are under development. Suggestions and patches welcome.

  • varying difficulty levels
  • power off via wiimote power button
  • alternate tileset