summaryrefslogtreecommitdiff
path: root/test/sudoku.cxx
AgeCommit message (Collapse)Author
7 daysmacOS: remove code present only to support macOS versions 10.3 and 10.4.ManoloFLTK
This is a first step towards removing the code related to support of old macOS versions that are not compatible with C++11 which FLTK 1.5 requires.
2024-08-10Fix tabs, trailing spaces, and update dependenciesAlbrecht Schlosser
2024-08-10Fixed warning in Sudoku (unused variable)Matthias Melcher
2024-08-04Add Sudoku undo and redo.Matthias Melcher
2024-08-04Sudoku formatting, hint updates.Matthias Melcher
2024-08-04Fix Sudoku's use of Fl_Sys_Menu->parent().Matthias Melcher
2023-08-16macOS audio is usable with XQuartzManoloFLTK
2023-08-16Allow build of sudoku app with macOS + XQuartzManoloFLTK
2023-08-15Undoing previous changesMatthias Melcher
2023-08-15Lot's of changes, must rethink UI.Matthias Melcher
2023-08-15Missing includesMatthias Melcher
2023-08-15Sudoku into smaller pieces.Matthias Melcher
2023-08-15Random testing and fixing.Matthias Melcher
2023-08-15Removed unused codeMatthias Melcher
2023-08-15Adding generatorMatthias Melcher
2022-12-30Use `FL_OVERRIDE` for all overridden virtual methods (#611)Matthias Melcher
FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override()
2022-09-26Replace all calls to sprintf() by calls to snprintf().ManoloFLTK
2022-01-19Fixing and upgrading Fl_Preferences (#374)Matthias Melcher
* Added filename function to Fl_Preferences Static function to get filename before opening. Member to get filename after opening. Bug fixes for memory mapped preferences. * ERROR is a macro on Windows, don't use it * Added Fl_Preferences::dirty(). User can now check if the database will be written when flushed or destroyed. Flush returns a crude error code. * Fl_Preferences::get binary data returns # of bytes read. * Verified group deletion code * Fl_Preferences ignores locale. This will make .prefs files interchangeable between different computers. * Updating the Preferences Mode to ignore locale. * Fixes in docs.
2021-12-18Generate FL/fl_config.h rather than FL/abi-version.hAlbrecht Schlosser
... as discussed in fltk.coredev in thread "RFC: introduce public config header <FL/fl_config.h>", see: https://groups.google.com/g/fltkcoredev/c/xLCs1AIXMVo/m/MHZpQggzAQAJ - Rename abi-version.h to fl_config.h, rename input files, update dependencies, .gitignore, CMake, configure and Makefiles. - Include Cairo options in FL/fl_config.h - Rename FLTK_USE_CAIRO to FLTK_HAVE_CAIROEXT for consistency. - Include <FL/fl_config.h> in config.h and wherever necessary, fix include order (move FL/Fl.H to the top) and more. - Move USE_X11 to fl_config.h and rename to FLTK_USE_X11 - Do not include <config.h> in Cairo demo program which is no longer required in Cairo programs since FLTK 1.4.0
2021-04-19Replace list of excluded platforms by name of chosen platform.ManoloFLTK
Since FL/platform.H defines USE_X11 for the X11 platform, it's better to target the X11 platform by #include <FL/platform.H> #if USE_X11 rather than by #if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) that would have to grow with future platforms.
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-01-18Use cross-platform code to set the window icon.ManoloFLTK
2018-06-23Removed macro FL_PORTING, as it has been more confusing than helpful.Matthias Melcher
The original intention of FL_PORTING was to mark all places in the source code where changes are required to port FLTK to a new platform. Thanks to the driver system, this approach has become somewhat misleading, so I removed all references. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-09Replace "WIN32" with "_WIN32" or "Windows".Albrecht Schlosser
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32". Replace "WIN32" in text and documentation with "Windows". Replace "MSWindows" with "Windows". To do: README.Windows.txt (and maybe other documentation as well) needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31Replace FL/x.H with FL/platform.H - step 2 (STR #3435).Albrecht Schlosser
This second step replaces FL/x.H with FL/platform.H in all source files. Dependencies have been adjusted as well. This commit completes the replacement of FL/x.H with FL/platform.H. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05Fix more compiler warnings.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-03Updated platform specific #if's to report unimplemented code when compiling ↵Matthias Melcher
with FL_PORTING defined and WIN32 and __APPLE__ undefined> git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-30Remove Fl::*sleep() method family, as discussed in fltk.coredev.Albrecht Schlosser
Hopefully this doesn't break Windows or Mac OX IDE builds, please help testing. Short story: these functions showed compatibility problems, lacked some quality (regarding interruption by signals), and maybe more. This is a combined commit that reverts three (3) svn commits. The following lists are extracted from git, but show the svn revisions and files: Remove Fl::*sleep() family, part 1: revert svn r 10287. :100644 100644 a988702... 794920f... M ide/Xcode4/FLTK.xcodeproj/project.pbxproj Remove Fl::*sleep() family, part 2: revert svn r 10151. :100644 100644 cf839e6... bfde9c4... M ide/Xcode3/FLTK.xcodeproj/project.pbxproj :100644 100644 794920f... c0c772a... M ide/Xcode4/FLTK.xcodeproj/project.pbxproj Remove Fl::*sleep() family, part 2b: revert svn r 10151 (continued). :100644 100644 bfde9c4... abf2922... M ide/Xcode3/FLTK.xcodeproj/project.pbxproj Remove Fl::*sleep() family, part 3: revert svn r 10150. :100644 100644 b469018... e76a3e5... M FL/Fl.H :100644 100644 7bb7899... 4d4755d... M ide/VisualC2008/fltk.lib.vcproj :100644 100644 9d9a2cf... 334aef8... M ide/VisualC2008/fltkdll.vcproj :100644 100644 5533a54... e30058b... M ide/VisualC2010/fltk.lib.vcxproj :100644 100644 e49f691... 1259c87... M ide/VisualC2010/fltk.lib.vcxproj.filters :100644 100644 946f31a... d53ab80... M src/CMakeLists.txt :100644 000000 fed36fd... 0000000... D src/Fl_sleep.cxx :100644 100644 3d9656c... 3b265f9... M src/Makefile :100644 100644 6eadbcb... 5dd5872... M test/sudoku.cxx git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10419 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21Added a new portable sleep API(ABI compatible). Now features a flexible ↵Fabien Costantini
multi-usage sleep() api accepting decimals, msleep() for millisecs only, usleep() for microsecs. Updated Makefiles, cmakefiles, vs2008, vs2010 with the new Fl_sleep add-on. Documented new API. still needs to be added in Xcode. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27Fix STR#3063: compilation using Mac OS 10.4Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-10Removed remaining 'deprecated function' warnings for XcodeMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-21Fixed index for difficulty menu entry - thanks to Manolo Gouy forAlbrecht Schlosser
finding this (STR #2221). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-21Most test demos converted to use Fl_Double_Window Greg Ercolano
to prevent flicker when new users run test/demo programs. For details, see fltk.development thread started 04/16/09, "Subject: browser demo flicker". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01Cahngad copyrights in 'test'Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-26STR 1885: fixed silly bugs in SudokuMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-20Fix all compiler warnings from various build systems.Michael R Sweet
Fix vsnprintf() implementation to properly handle long and long long ints. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08Add "mute sound" option to sudoku game, on request from a user.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-24- Added automated little helpers to Sudoku Matthias Melcher
(Menu Difficulty->add helpers) - Added example code for Wizard with the Tabs demo (STR #1564) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25Do some rearranging of image and desktop support files.Michael R Sweet
Add new Block Attack! game... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-24Add wording and tweak difficulty levels so that the Easy andMichael R Sweet
Normal levels always generate "valid" Sudoku puzzles while Hard and Impossible are free to make Sudoku puzzles more fun/challenging (STR #1361) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 Fixed Sudoku window positioning (STR #1398)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-02-22Don't increment read-only cells on a multiple-click.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-13Fix compile error.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4744 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-13Fix bugs in Sudoku demo:Michael R Sweet
1. "Check Game" now flags subgrids with duplicate numbers. 2. "Restart Game" now starts a new game if the current game has been solved. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4743 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14Use 0 instead of NULL in waveOutOpen() call...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-12Fix "restart game" - we aren't saving the seed, and even so we don't getMichael R Sweet
the same sequence on Linux anyways. Also, multiple clicks in a cell sets/increments the value. Finally, use alternate background color to produce checkerboard-like pattern. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-09Add WIN32 audio support, and protect against accidental restartsMichael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-08Add OSX audio support to Sudoku (THANK YOU IAN!)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121