Commit Graph

65 Commits

Author SHA1 Message Date
Michael R Sweet
0c91e35748 Add "restart game" item and save random number seed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 14:57:39 +00:00
Michael R Sweet
fc81090d3e Fix help (no more subgrid highlighting)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 02:25:10 +00:00
Michael R Sweet
3a7fac2981 Use CAPS LOCK as shift lock.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 02:19:58 +00:00
Michael R Sweet
912f6acf1f Allow multiple solutions to solve the puzzle.
Don't show solved grids - not compatible with new code anyways, and made
the game too easy.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 01:34:25 +00:00
Michael R Sweet
fc54087151 Update help and add support for keypad numbers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 09:49:02 +00:00
Michael R Sweet
f3182417c0 Update dependencies.
Eliminate compiler warnings in Fl_GIF_Image.cxx.

Add X11 icon code to sudoku example.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 15:05:50 +00:00
Michael R Sweet
e321cb37bf VC++ 2005 Support, drop old files, add icons for Sudoku
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 14:45:48 +00:00
Michael R Sweet
f9f2de3572 Fix a resize issue with X11.
Add missing Id keywords to input_choice.

Add sudoku to demo program.

Add on-line help to sudoku game, and put all of the cells in the main
window so that the keyboard navigation is sane.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 05:15:47 +00:00
Michael R Sweet
0ca7b126e7 More improvements to game board generator.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 01:56:57 +00:00
Michael R Sweet
fd9a51e43b Fix up new game code to expose at least one of every number in each axis
so puzzles are solvable with a unique solution.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 14:25:01 +00:00
Michael R Sweet
4a12c536fd Better game generation, fix test slot usage.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 06:23:13 +00:00
Michael R Sweet
65727ba06b Support up to 8 test slots and check for solution after every change
in a cell.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 02:17:04 +00:00
Michael R Sweet
ae6ea393c0 Mousewheel fixes.
src/Fl_mac.cxx:
    - Disable MightyMouse code for the moment - it is crashing on
      my PowerBook...

src/Fl_Scrollbar.cxx:
    - Fl_Scrollbar::handle() should only return 1 for mousewheel
      events that it uses.

test/sudoku.cxx:
    - More tweaking.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 00:47:45 +00:00
Michael R Sweet
f2019a54cb Add "test" numbers in the corners and add more levels of difficulty.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 22:43:33 +00:00
Michael R Sweet
9e8a88e66c Fix mousewheel handler bug (using wrong variable in initial check)
Add sudoku game app (fun for the holidays! :)

Use "-Os -g" as the default optimization settings.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 20:40:16 +00:00