~extremepopcorn/dhlib/dhlib_ep

« back to all changes in this revision

Viewing changes to app-sudoku/sudoku/GConst.hx

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* <license>
 
2
 * This file is part of the dis-Emi-A HaXe Library. Copyright © edA-qa mort-ora-y
 
3
 * For full copyright and license information please refer to doc/license.txt.
 
4
 * </license> 
 
5
 */
 
6
package sudoku;
 
7
 
 
8
/** 
 
9
 * Global constants, invariant through life and compile time.
 
10
 *
 
11
 * Note that Sudoku is always a 3x3 grid containing further 3x3 grids.
 
12
 * The code is written such that any size can be used, 4x4, 5x5, etc...
 
13
 * Making that dynamic can be done later...
 
14
 */
 
15
class GConst
 
16
{
 
17
        public static var boardSize = 9;
 
18
        public static var groupSize = 3;
 
19
        public static var numGroups = 3;
 
20
        public static var numCells = boardSize * boardSize;
 
21
        
 
22
        public static var cellUnset = 0;
 
23
        
 
24
        public static var cellLow = 1;
 
25
        public static var cellHigh = 9;
 
26
        public static var cellRange = cellHigh - cellLow + 1;
 
27
}