gnushogi.git
10 years agoManual: mention the results obtained in the Computer Shogi Championship in 1994.
Yann Dirson [Mon, 10 Feb 2014 21:30:06 +0000]
Manual: mention the results obtained in the Computer Shogi Championship in 1994.

10 years agoMerge branch 'maint'
Yann Dirson [Mon, 10 Feb 2014 19:56:58 +0000]
Merge branch 'maint'

10 years agoDrop hack supporting old cygwin toolchain for win32 build.
Yann Dirson [Thu, 6 Feb 2014 19:41:35 +0000]
Drop hack supporting old cygwin toolchain for win32 build.

Newer toolchains are now supported by automake cross-compilation
features, no need for this any more.

10 years agoActivate cross-compilation features in autoconf.
Yann Dirson [Tue, 4 Feb 2014 22:01:02 +0000]
Activate cross-compilation features in autoconf.

10 years agoOnly build pat2inc and declare it as dep for pattern.inc when not cross-compiling.
Yann Dirson [Sun, 9 Feb 2014 21:08:57 +0000]
Only build pat2inc and declare it as dep for pattern.inc when not cross-compiling.

This dependency would just cause a failed attempt to rebuild *.inc with
a foreign binary.

10 years agoTeach autogen.sh to generate *-pattern.inc, to allow easy crossbuild from git tree.
Yann Dirson [Sun, 9 Feb 2014 14:21:05 +0000]
Teach autogen.sh to generate *-pattern.inc, to allow easy crossbuild from git tree.

Since this requires to build pat2inc on the host, we do a quick configure
and make, and cleanup afterwards.

Proper support from automake for native tools in a cross setup would be the
correct way do to things, but we don't have it yet.

10 years agoShip *-pattern.inc in the distributed tarball, to simplify cross-compilation.
Yann Dirson [Tue, 4 Feb 2014 21:08:24 +0000]
Ship *-pattern.inc in the distributed tarball, to simplify cross-compilation.

10 years agoAvoid AC_FUNC_MALLOC.
Yann Dirson [Sun, 9 Feb 2014 14:06:08 +0000]
Avoid AC_FUNC_MALLOC.

Its only use would be if we had a chance to call malloc(0), which we do
not.  No need to bother with LIBOBJ for something we don't care about :)

10 years agoInstall text version of opening book instead of binary version.
Yann Dirson [Thu, 6 Feb 2014 22:34:57 +0000]
Install text version of opening book instead of binary version.

Difference in load time is minor, and building a binary book by default
impairs cross-compilation.  A binbook is still saved if possible.

10 years agoRemove texinfo.tex from revision control.
Yann Dirson [Wed, 5 Feb 2014 21:44:16 +0000]
Remove texinfo.tex from revision control.

This one too is fetched by autoreconf when missing.  Let's allow tools to
ensure it is always uptodate, and help code-measuring tool understand that
GNU Shogi is not made of 30% TeX code :)

10 years agoRemove XShogi doc from the manual, and add information about available GUIs.
Yann Dirson [Wed, 5 Feb 2014 21:27:47 +0000]
Remove XShogi doc from the manual, and add information about available GUIs.

10 years agoMerge branch 'maint'
Yann Dirson [Tue, 4 Feb 2014 23:51:09 +0000]
Merge branch 'maint'

Conflicts:
Makefile.in
NEWS
configure.ac
xshogi/parser.y
xshogi/scanner.l

10 years agoRemove XShogi from the source tree
Yann Dirson [Tue, 4 Feb 2014 23:42:20 +0000]
Remove XShogi from the source tree

10 years agoFix dependencies on built executables to include $(EXEEXT) for win32 support.
Yann Dirson [Tue, 4 Feb 2014 22:00:26 +0000]
Fix dependencies on built executables to include $(EXEEXT) for win32 support.

10 years agoDrop -ansi from gcc extra flags.
Yann Dirson [Tue, 4 Feb 2014 21:25:49 +0000]
Drop -ansi from gcc extra flags.

We don't care that much about it, and for some reason it causes the mingw
compiler to not define any WIN32 macro.

10 years agoGet rid of cxx/rxx in favor of COL/ROW_NAME.
Yann Dirson [Sat, 25 Jan 2014 20:58:52 +0000]
Get rid of cxx/rxx in favor of COL/ROW_NAME.

There is nothing to gain with the string-based move conversion, which
adds move dependency on the game variant.  And nothing to gain either from
using 2 mechanisms for the same thing :)

10 years agoDo not hardcode squares for camp limits and spare an #ifdef MINISHOGI.
Yann Dirson [Sat, 25 Jan 2014 20:34:34 +0000]
Do not hardcode squares for camp limits and spare an #ifdef MINISHOGI.

10 years agoImprove readability of algbr().
Yann Dirson [Mon, 20 Jan 2014 22:52:49 +0000]
Improve readability of algbr().

10 years agoUpdate TODO list
Yann Dirson [Mon, 20 Jan 2014 21:57:10 +0000]
Update TODO list

10 years agoMark more functions and vars static.
Yann Dirson [Mon, 20 Jan 2014 21:18:18 +0000]
Mark more functions and vars static.

10 years agoRemove more duplicate variable declarations.
Yann Dirson [Mon, 20 Jan 2014 21:12:01 +0000]
Remove more duplicate variable declarations.

10 years agoMove SetTimeControl into tctrl.c.
Yann Dirson [Mon, 20 Jan 2014 21:02:01 +0000]
Move SetTimeControl into tctrl.c.

Nothing display/interface-specific here.

10 years agoDrop more dead code and unused decls.
Yann Dirson [Mon, 20 Jan 2014 21:00:21 +0000]
Drop more dead code and unused decls.

10 years agoGet rid of redundant "barebones" flag, essentially used as synonym for "XSHOGI".
Yann Dirson [Sun, 19 Jan 2014 21:23:03 +0000]
Get rid of redundant "barebones" flag, essentially used as synonym for "XSHOGI".

10 years agoTrivial if/printf's simplifications.
Yann Dirson [Sun, 19 Jan 2014 21:22:14 +0000]
Trivial if/printf's simplifications.

10 years agoMake posting of ponder output default
H.G. Muller [Fri, 27 Sep 2013 08:06:01 +0000]
Make posting of ponder output default

10 years agoUpdate TODO list
Yann Dirson [Sat, 18 Jan 2014 17:33:48 +0000]
Update TODO list

10 years agoStart NEWS entry for 1.5.0
Yann Dirson [Sat, 18 Jan 2014 17:28:13 +0000]
Start NEWS entry for 1.5.0

10 years agoNuke files missed when switching to automake
Yann Dirson [Thu, 16 Jan 2014 22:19:15 +0000]
Nuke files missed when switching to automake

10 years agoMerge branch 'maint'
Yann Dirson [Thu, 16 Jan 2014 21:43:06 +0000]
Merge branch 'maint'

Conflicts:
configure.ac
gnushogi/cursesdsp.h
gnushogi/dspwrappers.c
gnushogi/dspwrappers.h
gnushogi/pattern.c
gnushogi/rawdsp.h

10 years agoBump version to "1.4.1+".
Yann Dirson [Thu, 16 Jan 2014 21:37:30 +0000]
Bump version to "1.4.1+".

10 years agoPrepare v1.4.1
Yann Dirson [Tue, 14 Jan 2014 21:50:32 +0000]
Prepare v1.4.1

10 years agoUpdate maintainership info in AUTHORS.
Yann Dirson [Tue, 14 Jan 2014 21:27:57 +0000]
Update maintainership info in AUTHORS.

10 years agoUpdate copyright info for 2008 (minishogi patches) and recent developments.
Yann Dirson [Tue, 14 Jan 2014 21:27:42 +0000]
Update copyright info for 2008 (minishogi patches) and recent developments.

10 years agoAdd missing copyright info to *-common.c, added by the minishogi patches.
Yann Dirson [Tue, 14 Jan 2014 21:16:52 +0000]
Add missing copyright info to *-common.c, added by the minishogi patches.

10 years agoAdjust comment to prevent licensecheck from considering pattern.c as generated
Yann Dirson [Tue, 14 Jan 2014 21:07:32 +0000]
Adjust comment to prevent licensecheck from considering pattern.c as generated

10 years agoDoc: mention 1.4.1
Yann Dirson [Tue, 14 Jan 2014 21:04:34 +0000]
Doc: mention 1.4.1

10 years agoDoc: more on shogi variants in general, and Mini Shogi in particular.
Yann Dirson [Tue, 14 Jan 2014 21:01:33 +0000]
Doc: more on shogi variants in general, and Mini Shogi in particular.

10 years agoSwitch build to automake, building gnuminishogi officially.
Yann Dirson [Tue, 17 Dec 2013 22:34:53 +0000]
Switch build to automake, building gnuminishogi officially.

10 years agoStop hardcoding filenames inside pat2inc, use commandline parameters.
Yann Dirson [Tue, 17 Dec 2013 20:47:28 +0000]
Stop hardcoding filenames inside pat2inc, use commandline parameters.

10 years agoPrevent pat2inc from silently reading gnushogi.pat when requested file is not found.
Yann Dirson [Tue, 17 Dec 2013 20:37:19 +0000]
Prevent pat2inc from silently reading gnushogi.pat when requested file is not found.

10 years agoMake ReadOpeningSequences easier to read.
Yann Dirson [Tue, 17 Dec 2013 20:35:30 +0000]
Make ReadOpeningSequences easier to read.

10 years agoXshogi: build scanner separately from parser.
Yann Dirson [Sat, 14 Dec 2013 19:37:28 +0000]
Xshogi: build scanner separately from parser.

10 years agoMerge branch 'maint'
Yann Dirson [Sun, 12 Jan 2014 14:30:26 +0000]
Merge branch 'maint'

10 years agoBump version to "1.4.1-rc1+".
Yann Dirson [Sun, 12 Jan 2014 14:30:05 +0000]
Bump version to "1.4.1-rc1+".

10 years agoFix "make distclean" when there is no editor backup file to remove.
Yann Dirson [Wed, 18 Dec 2013 20:44:10 +0000]
Fix "make distclean" when there is no editor backup file to remove.

10 years agoPrepare v1.4.1rc1.
Yann Dirson [Wed, 18 Dec 2013 20:34:08 +0000]
Prepare v1.4.1rc1.

10 years agoAdd build support for win32 on cygwin (gcc3).
Yann Dirson [Mon, 16 Dec 2013 23:00:46 +0000]
Add build support for win32 on cygwin (gcc3).

10 years agoGet rid of Makefile.profile, document flags to use in README.maint instead.
Yann Dirson [Tue, 17 Dec 2013 22:26:26 +0000]
Get rid of Makefile.profile, document flags to use in README.maint instead.

We don't want to maintain Makefile.profile as a quasi-copy of main Makefile,
that's not a good practice at all.

10 years agoKill dead code in pat2inc.
Yann Dirson [Tue, 17 Dec 2013 20:25:35 +0000]
Kill dead code in pat2inc.

10 years agoMinor pat2inc code cleanups
Yann Dirson [Tue, 17 Dec 2013 20:25:19 +0000]
Minor pat2inc code cleanups

10 years agoDrop useless defines for pat2inc build.
Yann Dirson [Tue, 17 Dec 2013 20:11:59 +0000]
Drop useless defines for pat2inc build.

10 years agoUse .texi suffix, preferred to .texinfo.
Yann Dirson [Tue, 17 Dec 2013 22:39:10 +0000]
Use .texi suffix, preferred to .texinfo.

10 years agoFix ordering of include dirs.
Yann Dirson [Mon, 16 Dec 2013 21:52:53 +0000]
Fix ordering of include dirs.

Local headers first, then build dir, then src dir.

10 years agoMinor makefile improvements
Yann Dirson [Mon, 16 Dec 2013 21:53:23 +0000]
Minor makefile improvements

10 years agoMove into opts.h the "mostly for hacking" remark from INSTALL file.
Yann Dirson [Sun, 15 Dec 2013 11:45:02 +0000]
Move into opts.h the "mostly for hacking" remark from INSTALL file.

10 years agoMerge branch 'maint' into master
Yann Dirson [Thu, 5 Dec 2013 22:31:07 +0000]
Merge branch 'maint' into master

10 years agoUpdate .gitignore for doc/ dir.
Yann Dirson [Thu, 5 Dec 2013 22:23:19 +0000]
Update .gitignore for doc/ dir.

10 years ago#define _POSIX_C_SOURCE to get proper access to snprintf and vsnprintf.
Yann Dirson [Thu, 5 Dec 2013 22:18:31 +0000]
#define _POSIX_C_SOURCE to get proper access to snprintf and vsnprintf.

10 years agoUse POSIX setvbuf in preference to BSD setlinebuf.
Yann Dirson [Thu, 5 Dec 2013 22:13:44 +0000]
Use POSIX setvbuf in preference to BSD setlinebuf.

This avoids implicit declaration of setlinebuf with GNU libc, which would
have required to define _BSD_SOURCE just to get rid of, and is not an
innocuous setting.

Drop call to no-op AC_FUNC_SETVBUF_REVERSED at the same time.

10 years agoFully quote autoconf macro arguments, as they should.
Yann Dirson [Thu, 5 Dec 2013 22:10:37 +0000]
Fully quote autoconf macro arguments, as they should.

10 years agoBump version to "1.4.1-rc0+".
Yann Dirson [Thu, 5 Dec 2013 22:03:01 +0000]
Bump version to "1.4.1-rc0+".

10 years agoGenerate HTML doc using makeinfo, instead of obsolecent texi2html
Yann Dirson [Thu, 5 Dec 2013 20:19:06 +0000]
Generate HTML doc using makeinfo, instead of obsolecent texi2html

10 years agoMinor cleanups.
Yann Dirson [Sat, 9 Nov 2013 22:44:21 +0000]
Minor cleanups.

10 years agoProvide "sd <n>" as (primary) alias of "depth <n>" for xboard conformance.
Yann Dirson [Sat, 9 Nov 2013 22:43:42 +0000]
Provide "sd <n>" as (primary) alias of "depth <n>" for xboard conformance.

10 years agoAllow "depth <n>" syntax.
Yann Dirson [Sat, 9 Nov 2013 22:41:44 +0000]
Allow "depth <n>" syntax.

10 years agoMention all supported commands in Raw_help.
Yann Dirson [Sat, 9 Nov 2013 22:32:11 +0000]
Mention all supported commands in Raw_help.

Still have to figure out what some of them do :)

10 years agoRemove support for -DNOPOST, and duplicate code it would introduce.
Yann Dirson [Sat, 9 Nov 2013 22:07:51 +0000]
Remove support for -DNOPOST, and duplicate code it would introduce.

This define would probably not have worked today anyway...

10 years agoReintroduce printf in Raw_help.
Yann Dirson [Sat, 9 Nov 2013 22:02:33 +0000]
Reintroduce printf in Raw_help.

There is no problem anymore with using printf here now that we don't use
CP[] anymore.  Well, that was not such a big problem anyway even then :]

10 years agoRestore interactive "level" mode in xshogi proto, by dropping trailing newline in...
Yann Dirson [Sat, 9 Nov 2013 21:54:37 +0000]
Restore interactive "level" mode in xshogi proto, by dropping trailing newline in GetString.

Not very interesting in itself, except that bug was causing some code to
be dead in Raw_SelectLevel, and several similar functions should be made
similar to that one to implement xboard protocol correctly.

10 years agoMove "offset to command args" to InputCommand.
Yann Dirson [Sat, 9 Nov 2013 17:03:32 +0000]
Move "offset to command args" to InputCommand.

10 years agoStatify more functions.
Yann Dirson [Sat, 9 Nov 2013 17:02:48 +0000]
Statify more functions.

10 years agoRefactor InputCommand, removing last need for NOT_CURSES macro.
Yann Dirson [Sat, 9 Nov 2013 16:56:06 +0000]
Refactor InputCommand, removing last need for NOT_CURSES macro.

10 years agoRefactor needlessly-complicated Raw_SelectLevel.
Yann Dirson [Sat, 9 Nov 2013 16:54:11 +0000]
Refactor needlessly-complicated Raw_SelectLevel.

10 years agoDeal with simple compiler warnings: dead code, unused parameters, etc.
Yann Dirson [Wed, 6 Nov 2013 23:06:47 +0000]
Deal with simple compiler warnings: dead code, unused parameters, etc.

10 years agoWhitespace and parenthesis cleanup.
Yann Dirson [Wed, 6 Nov 2013 21:18:36 +0000]
Whitespace and parenthesis cleanup.

10 years agoSwitch display-selection framework from dspwrappers to "struct display".
Yann Dirson [Wed, 6 Nov 2013 21:33:03 +0000]
Switch display-selection framework from dspwrappers to "struct display".

Much easier to write, will allow to correctly separate raw from xshogi,
to add proper xboard support, etc.

10 years agoDrop -pedantic from default gcc flags and restore use of explicit initializer fields.
Yann Dirson [Wed, 6 Nov 2013 21:22:51 +0000]
Drop -pedantic from default gcc flags and restore use of explicit initializer fields.

This flag includes warnings for the explicit initializer construct,
but it is much too useful.

10 years agoPrepare v1.4.1rc0.
Yann Dirson [Thu, 7 Nov 2013 21:24:01 +0000]
Prepare v1.4.1rc0.

10 years agoUpdate manual for maintainer, project communication, and plans.
Yann Dirson [Thu, 7 Nov 2013 21:23:27 +0000]
Update manual for maintainer, project communication, and plans.

10 years agoUpdate TODO: there are plans for v1.5, and things have been done.
Yann Dirson [Thu, 7 Nov 2013 21:08:14 +0000]
Update TODO: there are plans for v1.5, and things have been done.

10 years agoFix "make dist" not to include a recursive copy of the dist.
Yann Dirson [Tue, 5 Nov 2013 22:10:24 +0000]
Fix "make dist" not to include a recursive copy of the dist.

10 years agoFix formatting of boards in texinfo doc.
Yann Dirson [Tue, 5 Nov 2013 21:56:47 +0000]
Fix formatting of boards in texinfo doc.

10 years agoUpdate NEWS file for upcoming 1.4.1.
Yann Dirson [Tue, 5 Nov 2013 21:09:58 +0000]
Update NEWS file for upcoming 1.4.1.

10 years agoRemove version number from manpage.
Yann Dirson [Tue, 5 Nov 2013 21:03:08 +0000]
Remove version number from manpage.

It was not very useful there, and has been out of sync with the software
version anyway.

10 years agoRemove unused obsolete version numbers from Makefiles.
Yann Dirson [Tue, 5 Nov 2013 21:02:17 +0000]
Remove unused obsolete version numbers from Makefiles.

10 years agoTake note of more cleanups to do.
Yann Dirson [Sun, 20 Oct 2013 18:52:39 +0000]
Take note of more cleanups to do.

10 years agoMove hashfile definition from configure.ac into Makefile.in
Yann Dirson [Sun, 20 Oct 2013 19:41:47 +0000]
Move hashfile definition from configure.ac into Makefile.in

Like other similar defs...

10 years agoUse configure --enable-minishogi to select build of gnuminishogi.
Yann Dirson [Sun, 20 Oct 2013 19:29:45 +0000]
Use configure --enable-minishogi to select build of gnuminishogi.

At the same time, provide an empty gnuminishogi.tbk so things work more
as they should.

Only the patterns are still necessary to specify manually at this point.

10 years agoFix mini-Shogi out-of-bounds acces of board
H.G. Muller [Fri, 27 Sep 2013 07:37:45 +0000]
Fix mini-Shogi out-of-bounds acces of board

10 years agoAvoid looking at the game type to determine minishogi piece values.
Yann Dirson [Wed, 28 Sep 2011 22:12:07 +0000]
Avoid looking at the game type to determine minishogi piece values.

We don't know how to determine the game type anyway, and a previous
patch disables its computation, but no need to compile dead code in this
case.

Another problem to look at is that "in_opening_stage" is surely
badly tuned for MiniShogi, but the program seems to score better with
current code that by telling there is opening stage.

Flag FIXME's where applicable so some willing soul would know where to
find things to improve for MiniShogi.

10 years agoDisable GuessGameType() for MiniShogi.
Yann Dirson [Wed, 28 Sep 2011 21:27:03 +0000]
Disable GuessGameType() for MiniShogi.

Game types for MiniShogi are surely different from the ones in Shogi, so
this would require serious thought to get it right.  Just pretend we don't
know.

10 years agoFix ScorePosition() for MiniShogi.
Yann Dirson [Wed, 28 Sep 2011 21:25:24 +0000]
Fix ScorePosition() for MiniShogi.

Gcc's stack-smashing protection combined with glibc's -D_FORTIFY_SOURCE
detected with a segfault that we were using 9x9-board offsets on our 5x5
board.  This patch abstracts the relevant hardcoded constants and provides
correct values for MiniShogi.

10 years agoGenerate patterns.inc at build time.
Yann Dirson [Mon, 11 Feb 2008 00:47:01 +0000]
Generate patterns.inc at build time.

10 years agoInitial attempt at minishogi.
Yann Dirson [Mon, 11 Feb 2008 00:47:00 +0000]
Initial attempt at minishogi.

This preliminar minishogi takes the approach of conditional
compilation, so I can focus on differences between shogi and
minishogi.  Those ifdef's are expected to progressively disappear as
the support code is made generic enough to support the needs of both
variants.

10 years agoFix various regression for building out of tree.
Yann Dirson [Sun, 20 Oct 2013 20:07:19 +0000]
Fix various regression for building out of tree.

Most notably, doc was never buildable out of tree, but the recent build
enhancements did not take that into account.

10 years agoWindows port
H.G. Muller [Fri, 27 Sep 2013 07:39:28 +0000]
Windows port

This patch makes GNU Shogi compilable with gcc under Cygwin, using the
-mno-cygwin flag, so that it can run as a native Windows application,
independent of Cygwin1.dll.

The patch is fully conditional, based on defined(WIN32).

YD: rebased onto recent refactorings

10 years agoNormalize configure --help using AS_HELP_STRING.
Yann Dirson [Sun, 3 Nov 2013 14:00:20 +0000]
Normalize configure --help using AS_HELP_STRING.

10 years agoDon't bail out if configure (without --with-curses) does not find libcurses.
Yann Dirson [Sun, 3 Nov 2013 14:00:19 +0000]
Don't bail out if configure (without --with-curses) does not find libcurses.

Only fail when --with-curses was requested and libcurses cannot be found.

10 years agoFix funny search-and-replace copyright typo.
Yann Dirson [Sun, 3 Nov 2013 14:00:18 +0000]
Fix funny search-and-replace copyright typo.