Commit b1e44e60 authored by Vivien Kraus's avatar Vivien Kraus

Merge branch '9-use-swig' into 'develop'

Resolve "Use SWIG"

Closes #9

See merge request gugurumbe/tarot!8
parents 213568bd 7b48008d
Pipeline #94191 passed with stages
in 2 minutes and 26 seconds
# .gitignore
#
# Copyright (C) 2017, 2018 Vivien Kraus <vivien@planete-kraus.eu>
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
# Please do not use git globs (*) here, since we would not be able to
# validate the ignored files (no, git check-ignore does not do the
# job)
*~
public
\ No newline at end of file
......@@ -2,6 +2,7 @@ image: debian:latest
stages:
- dist
- check
- manual
dist:
......@@ -13,13 +14,14 @@ dist:
- public
expire_in: 1 week
dist_ansi:
stage: dist
image: tarotbis/build:latest
script: "./ci/dist_ansi.sh"
check:
stage: check
image: tarotbis/check:latest
script: "./ci/check.sh"
pages:
stage: manual
image: tarotbis/doc:latest
script: "./ci/pages.sh"
artifacts:
paths:
......
/usr/share/automake-1.15/COPYING
\ No newline at end of file
This diff is collapsed.
......@@ -16,7 +16,11 @@
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
SUBDIRS = po lib-library
SUBDIRS = lib-library lib-program
if NEED_LIBOPTS
SUBDIRS += $(LIBOPTS_DIR)
endif # NEED_LIBOPTS
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS =
......@@ -28,6 +32,9 @@ include_HEADERS =
check_PROGRAMS =
info_TEXINFOS =
dist_man_MANS =
helpdir = $(datadir)/help
chelpdir = $(helpdir)/C
dist_chelp_DATA =
pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA =
pkgdatadir = $(datadir)/@PACKAGE@
......@@ -45,10 +52,12 @@ SUFFIXES =
dist_noinst_SCRIPTS = \
autogen.sh \
run-tarot.sh \
build-aux/git-version-gen
git-version-gen
nodist_noinst_DATA =
VALGRIND_SUPPRESSION_FILE = \
valgrind.supp
ACLOCAL_AMFLAGS = -I m4 -I lib-library/m4
ACLOCAL_AMFLAGS = -I m4 -I lib-library/m4 -I lib-program/m4
EXTRA_DIST = \
tarot.org \
setup.el \
......@@ -56,7 +65,7 @@ EXTRA_DIST = \
lib-library/m4/gnulib-cache.m4 \
$(top_srcdir)/.version \
.gitlab-ci.yml \
.gitignore
$(VALGRIND_SUPPRESSION_FILE)
BUILT_SOURCES = \
$(top_srcdir)/.version
CLEANFILES =
......@@ -71,7 +80,7 @@ AM_CPPFLAGS = \
AM_CFLAGS =
AM_YFLAGS = -d
AM_LIBS =
AM_LDADD = $(LTLIBINTL) $(LTLIBTHREAD) @INTL_MACOSX_LIBS@
AM_LDADD =
# Texinfo -> html flags, overriden in doc/Makefile.am
AM_MAKEINFOHTMLFLAGS =
TESTS =
......@@ -83,7 +92,11 @@ AM_TESTS_ENVIRONMENT = \
GUILE_COMPILED_LOAD_PATH="src/scm:$$GUILE_COMPILED_LOAD_PATH" \
$(LIBTOOL) --mode=execute
if HAVE_VALGRIND
AM_TESTS_ENVIRONMENT += $(VALGRIND) --tool=memcheck
AM_TESTS_ENVIRONMENT += \
$(VALGRIND) --tool=memcheck \
--leak-check=full \
--error-exitcode=42 \
--suppressions=$(srcdir)/$(VALGRIND_SUPPRESSION_FILE)
endif # HAVE_VALGRIND
TEST_EXTENSIONS = .tarot
......
......@@ -25,6 +25,16 @@ gnulib-tool --libtool \
--source-base=lib-library \
--m4-base=lib-library/m4 \
--macro-prefix=gl_lib \
--import assert stdalign || exit 1
--import assert || exit 1
gnulib-tool --libtool \
--lib=libgnulibrary \
--source-base=lib-program \
--m4-base=lib-program/m4 \
--macro-prefix=gl_program \
--import assert readline git-version-gen || exit 1
rm -rf libopts libopts-* || exit 1
gunzip -c `autoopts-config libsrc` | tar -xvf - || exit 1
mv -f libopts-*.*.* libopts || exit 1
cp -fp libopts/m4/*.m4 lib-program/m4/. || exit 1
autoreconf -vif || exit 1
rm doc/tarot.texi || exit 1
#!/bin/sh
# Print a version string.
scriptversion=2018-08-20.21; # UTC
# Copyright (C) 2007-2017 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This script is derived from GIT-VERSION-GEN from GIT: http://git.or.cz/.
# It may be run two ways:
# - from a git repository in which the "git describe" command below
# produces useful output (thus requiring at least one signed tag)
# - from a non-git-repo directory containing a .tarball-version file, which
# presumes this script is invoked like "./git-version-gen .tarball-version".
# In order to use intra-version strings in your project, you will need two
# separate generated version string files:
#
# .tarball-version - present only in a distribution tarball, and not in
# a checked-out repository. Created with contents that were learned at
# the last time autoconf was run, and used by git-version-gen. Must not
# be present in either $(srcdir) or $(builddir) for git-version-gen to
# give accurate answers during normal development with a checked out tree,
# but must be present in a tarball when there is no version control system.
# Therefore, it cannot be used in any dependencies. GNUmakefile has
# hooks to force a reconfigure at distribution time to get the value
# correct, without penalizing normal development with extra reconfigures.
#
# .version - present in a checked-out repository and in a distribution
# tarball. Usable in dependencies, particularly for files that don't
# want to depend on config.h but do want to track version changes.
# Delete this file prior to any autoconf run where you want to rebuild
# files to pick up a version string change; and leave it stale to
# minimize rebuild time after unrelated changes to configure sources.
#
# As with any generated file in a VC'd directory, you should add
# /.version to .gitignore, so that you don't accidentally commit it.
# .tarball-version is never generated in a VC'd directory, so needn't
# be listed there.
#
# Use the following line in your configure.ac, so that $(VERSION) will
# automatically be up-to-date each time configure is run (and note that
# since configure.ac no longer includes a version string, Makefile rules
# should not depend on configure.ac for version updates).
#
# AC_INIT([GNU project],
# m4_esyscmd([build-aux/git-version-gen .tarball-version]),
# [bug-project@example])
#
# Then use the following lines in your Makefile.am, so that .version
# will be present for dependencies, and so that .version and
# .tarball-version will exist in distribution tarballs.
#
# EXTRA_DIST = $(top_srcdir)/.version
# BUILT_SOURCES = $(top_srcdir)/.version
# $(top_srcdir)/.version:
# echo $(VERSION) > $@-t && mv $@-t $@
# dist-hook:
# echo $(VERSION) > $(distdir)/.tarball-version
me=$0
version="git-version-gen $scriptversion
Copyright 2011 Free Software Foundation, Inc.
There is NO warranty. You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files named COPYING."
usage="\
Usage: $me [OPTION]... \$srcdir/.tarball-version [TAG-NORMALIZATION-SED-SCRIPT]
Print a version string.
Options:
--prefix PREFIX prefix of git tags (default 'v')
--fallback VERSION
fallback version to use if \"git --version\" fails
--help display this help and exit
--version output version information and exit
Running without arguments will suffice in most cases."
prefix=v
fallback=
while test $# -gt 0; do
case $1 in
--help) echo "$usage"; exit 0;;
--version) echo "$version"; exit 0;;
--prefix) shift; prefix=${1?};;
--fallback) shift; fallback=${1?};;
-*)
echo "$0: Unknown option '$1'." >&2
echo "$0: Try '--help' for more information." >&2
exit 1;;
*)
if test "x$tarball_version_file" = x; then
tarball_version_file="$1"
elif test "x$tag_sed_script" = x; then
tag_sed_script="$1"
else
echo "$0: extra non-option argument '$1'." >&2
exit 1
fi;;
esac
shift
done
if test "x$tarball_version_file" = x; then
echo "$usage"
exit 1
fi
tag_sed_script="${tag_sed_script:-s/x/x/}"
nl='
'
# Avoid meddling by environment variable of the same name.
v=
v_from_git=
# First see if there is a tarball-only version file.
# then try "git describe", then default.
if test -f $tarball_version_file
then
v=`cat $tarball_version_file` || v=
case $v in
*$nl*) v= ;; # reject multi-line output
[0-9]*) ;;
*) v= ;;
esac
test "x$v" = x \
&& echo "$0: WARNING: $tarball_version_file is missing or damaged" 1>&2
fi
if test "x$v" != x
then
: # use $v
# Otherwise, if there is at least one git commit involving the working
# directory, and "git describe" output looks sensible, use that to
# derive a version string.
elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
&& v=`git describe --tags --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \
|| git describe --tags --abbrev=4 HEAD 2>/dev/null` \
&& v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \
&& case $v in
$prefix[0-9]*) ;;
*) (exit 1) ;;
esac
then
# Is this a new git that lists number of commits since the last
# tag or the previous older version that did not?
# Newer: v6.10-77-g0f8faeb
# Older: v6.10-g0f8faeb
case $v in
*-*-*) : git describe is okay three part flavor ;;
*-*)
: git describe is older two part flavor
# Recreate the number of commits and rewrite such that the
# result is the same as if we were using the newer version
# of git describe.
vtag=`echo "$v" | sed 's/-.*//'`
commit_list=`git rev-list "$vtag"..HEAD 2>/dev/null` \
|| { commit_list=failed;
echo "$0: WARNING: git rev-list failed" 1>&2; }
numcommits=`echo "$commit_list" | wc -l`
v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
test "$commit_list" = failed && v=UNKNOWN
;;
esac
# Change the first '-' to a '.', so version-comparing tools work properly.
# Remove the "g" in git describe's output string, to save a byte.
v=`echo "$v" | sed 's/-/./;s/\(.*\)-g/\1-/'`;
v_from_git=1
elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
v=UNKNOWN
else
v=$fallback
fi
v=`echo "$v" |sed "s/^$prefix//"`
# Test whether to append the "-dirty" suffix only if the version
# string we're using came from git. I.e., skip the test if it's "UNKNOWN"
# or if it came from .tarball-version.
if test "x$v_from_git" != x; then
# Don't declare a version "dirty" merely because a timestamp has changed.
git update-index --refresh > /dev/null 2>&1
dirty=`exec 2>/dev/null;git diff-index --name-only HEAD` || dirty=
case "$dirty" in
'') ;;
*) # Append the suffix only if there isn't one already.
case $v in
*-dirty) ;;
*) v="$v-dirty" ;;
esac ;;
esac
fi
# Omit the trailing newline, so that m4_esyscmd can use the result directly.
printf %s "$v"
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
......@@ -16,4 +16,7 @@
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
EXTRA_DIST += %reldir%/dist.sh %reldir%/dist_ansi.sh %reldir%/pages.sh
EXTRA_DIST += \
%reldir%/dist.sh \
%reldir%/pages.sh \
%reldir%/check.sh
#!/bin/sh
VERSION=$(cat public/version)
cp public/tarot-$VERSION.tar.gz . || exit 1
tar xf tarot-$VERSION.tar.gz || exit 1
mkdir build || exit 1
cd build/
../tarot-$VERSION/configure \
--enable-silent-rules=yes \
--enable-valgrind=yes \
|| (cat config.log; exit 1)
make -j 16 check || exit 1
make distclean || exit 1
#!/bin/sh
apt-get update
apt-get upgrade -y
apt-get install -y --no-install-recommends texlive-base texlive-latex-base git ca-certificates texlive-fonts-recommended texlive-generic-recommended autoconf automake gettext autopoint libtool texinfo gnulib autoconf-archive make gcc flex bison gperf emacs org-mode indent check gengetopt help2man libreadline-dev libunistring-dev valgrind autogen guile-2.0 guile-2.0-dev emacs-goodies-el geiser paredit-el elpa-rainbow-delimiters ess r-base r-cran-foreign r-cran-tibble r-cran-glmnet r-cran-dplyr r-cran-magrittr r-cran-tidyr parallel nettle-dev
SOURCE_TOP=$(pwd)
CLEAN_TOP=$(cd .. && pwd)/clean
mkdir -p ../clean
......@@ -21,6 +17,7 @@ sh autogen.sh || exit 1
./configure \
CFLAGS="-Wall -Wextra -Werror -g -O0 $CFLAGS" \
--prefix="$SOURCE_TOP/public" \
--enable-valgrind=yes \
|| (cat config.log ; exit 1) \
|| exit 1
make indent || exit 1
......
#!/bin/sh
export CFLAGS="-ansi -pedantic -Wno-unused-function"
./ci/dist.sh
......@@ -2,15 +2,6 @@
VERSION=$(cat public/version)
apt-get update
apt-get upgrade -y
apt-get install -y --no-install-recommends \
build-essential \
texinfo \
pkg-config \
guile-2.0 \
guile-2.0-dev \
nettle-dev
cp public/tarot-$VERSION.tar.gz . || exit 1
tar xf tarot-$VERSION.tar.gz || exit 1
mkdir build || exit 1
......@@ -18,5 +9,18 @@ cd build/
../tarot-$VERSION/configure \
--prefix="$PWD/../public" \
--enable-silent-rules=yes \
--enable-valgrind=yes \
CFLAGS="-g -fprofile-arcs -ftest-coverage" \
|| (cat config.log; exit 1)
make -j 16 install-html || exit 1
make distclean || exit 1
for dep in $(cat /etc/dependencies)
do
apt-get remove -y $dep || exit 1
if ../tarot-$VERSION/configure > log.txt 2>&1
then
echo "Dependency $dep is not required to configure the package"
exit 1
fi
done
......@@ -3,15 +3,16 @@
AC_PREREQ([2.69])
AC_INIT([tarot],
m4_esyscmd([build-aux/git-version-gen .tarball-version]),
m4_esyscmd([./git-version-gen .tarball-version]),
[vivien@planete-kraus.eu])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4 lib-library/m4])
AC_CONFIG_MACRO_DIRS([m4 lib-library/m4 lib-program/m4])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_STDC
gl_lib_EARLY
gl_program_EARLY
AM_INIT_AUTOMAKE
AM_PROG_AR
LT_INIT
......@@ -32,27 +33,24 @@ AS_IF([test "x$enable_valgrind" = "xyes"], [
])
])
AM_CONDITIONAL([HAVE_VALGRIND], [test "x$HAVE_VALGRIND" = "xyes"])
GUILE_PROGS
if test "x$GUILD" = "x"; then
AC_MSG_ERROR(['guild' binary not found; please check your guile-2.x installation.])
fi
AC_PROG_LEX
AC_PROG_YACC
AM_MISSING_PROG([XSLTPROC], [xsltproc])
AM_MISSING_PROG([XMLLINT], [xmllint])
# Checks for libraries.
gl_lib_INIT
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19])
gl_program_INIT
AC_SEARCH_LIBS([add_history], [history], [
AC_DEFINE([HAVE_HISTORY], [1], [Whether the add_history function is available])
], [
AC_DEFINE([HAVE_HISTORY], [0], [Whether the add_history function is available])
])
GUILE_PKG
AX_LIB_NETTLE([yes])
PKG_CHECK_MODULES([XML], [libxml-2.0])
LIBOPTS_CHECK
# Checks for header files.
AC_CHECK_HEADERS_ONCE([readline/history.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
......@@ -66,8 +64,8 @@ AC_DEFINE([TAB_WIDTH], [8], [Number of columns in a tab])
AC_CONFIG_FILES([
Makefile
po/Makefile.in
lib-library/Makefile
lib-program/Makefile
src/libtarot.pc
])
AC_CONFIG_FILES([
......
......@@ -17,26 +17,41 @@
# <http://www.gnu.org/licenses/>.
info_TEXINFOS += %reldir%/tarot.texi
dist_chelp_DATA += %reldir%/tarot.xml
%canon_reldir%_tarot_TEXINFOS = \
%reldir%/fdl.texi
%reldir%/fdl.texi \
%reldir%/invoke-tarot-body.texi
AM_MAKEINFOHTMLFLAGS += --css-include $(srcdir)/%reldir%/style.css
EXTRA_DIST += \
%reldir%/ChangeLog \
%reldir%/tarot.org \
%reldir%/invoke-tarot.texi \
%reldir%/setup.el
dist_html_DATA += \
%reldir%/tarot-full.html \
%reldir%/style.css
install-html-local: install-dist_htmlDATA
TANGLED += %reldir%/generate-manual
TANGLED += %reldir%/generate-manual src/main.c src/tarot-opts.def
.PHONY: indent-org
indent: indent-org
indent-org: %reldir%/tarot.org
$(indent_verbose) (cd $(srcdir)/%reldir% \
&& (echo "/* *INDENT-OFF* */" ; cat tarot.org ; echo "/* *INDENT-ON* */") \
| $(INDENT) --no-tabs \
| tail -n +2 \
| head -n -1 \
> tarot-indented.org \
&& mv tarot-indented.org tarot.org)
$(TANGLED): %reldir%/tarot.org %reldir%/setup.el .version
$(MAKE) $(AM_MAKEFLAGS) src/libtarot.la src/features/tarot-header.arff
$(MAKE) $(AM_MAKEFLAGS) src/libtarot.la
$(AM_V_GEN) (cd $(srcdir)/%reldir% \
&& LIBTAROT_VERSION="$(VERSION)" \
LD_LIBRARY_PATH="$(abs_top_builddir)/src/.libs:$LD_LIBRARY_PATH" \
......@@ -45,6 +60,15 @@ $(TANGLED): %reldir%/tarot.org %reldir%/setup.el .version
--file tarot.org \
-f org-babel-tangle)
%reldir%/tarot-full.html %reldir%/tarot.texi: $(TANGLED)
$(MAKE) $(AM_MAKEFLAGS) src/libtarot.la src/features/tarot-header.arff
%reldir%/invoke-tarot-body.texi: %reldir%/invoke-tarot.texi
$(AM_V_GEN) tail -n +3 \
$(srcdir)/%reldir%/invoke-tarot.texi \
> $(srcdir)/%reldir%/invoke-tarot-body.texi
%reldir%/tarot.texi: $(TANGLED) %reldir%/invoke-tarot-body.texi
$(MAKE) $(AM_MAKEFLAGS) src/libtarot.la
$(AM_V_GEN) $(srcdir)/%reldir%/generate-manual
%reldir%/tarot.xml: %reldir%/tarot.texi
$(AM_V_MAKEINFO) $(MAKEINFO) --docbook -I %reldir% -I $(srcdir)/%reldir% \
-o $(srcdir)/%reldir%/tarot.xml \
$(srcdir)/%reldir%/tarot.texi
......@@ -4,9 +4,7 @@
(setq org-babel-load-languages '((emacs-lisp . t) (scheme . t) (shell . t)))
(setq geiser-default-implementation 'guile)
(setq org-html-htmlize-output-type 'css)
(add-to-list 'load-path ".")
(require 'org)
(require 'ox-texinfo)
(require 'ox-html)
(require 'geiser)
(require 'paredit)
(require 'rainbow-delimiters)
This diff is collapsed.
setup 5 with call
deal 21T 20T 19T 18T 13T 12T 11T 10T 9T 8T 4T 1T KH KD QD to P5
deal 21T 20T 19T 18T 13T 12T 11T 10T 9T 8T 4T 1T \
KH \
KD QD \
to P5
bid take
bid pass
bid pass
......
tarot Copyright (C) 2018 Vivien Kraus
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `license' for details.
A game for 5 players, with call.
The dog is:
- KS
- 15T, EXC
Cards of P5:
- KH
- QD, KD
- 1T, 4T, 8T, 9T, 10T, 11T, 12T, 13T, 18T, 19T, 20T, 21T
Waiting for P5 to discard the following cards:
- QD
And 2 out of the following cards:
- 4T, 8T, 9T, 10T, 11T, 12T, 13T, 15T, 18T, 19T, 20T
(input): 1.1-1.17: this is not valid.
+---------+---------+---------+---------+---------+
| P1 | P2 | P3 | P4 | * P5 |
+---------+---------+---------+---------+---------+
| take | pass | pass | pass | push |
| slam! | pass | pass | pass | pass |
+---------+---------+---------+---------+---------+
- Call: KC
- Dog: KS, 15T, EXC
+---------+---------+---------+---------+---------+
| P1 | P2 | P3 | P4 | * P5 |
+---------+---------+---------+---------+---------+
- Cards of P5: KH, QD, KD, 1T, 4T, 8T, 9T, 10T, 11T, 12T, 13T, 18T, 19T, 20T, 21T
P5 may discard 3 cards from QD, and after exhausting these, from 4T, 8T, 9T, 10T, 11T, 12T, 13T, 15T, 18T, 19T, 20T
ERROR: this is not possible
tarot Copyright (C) 2018 Vivien Kraus
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `license' for details.
A game for 5 players, with call.
The dog is:
- AH
- KS
- EXC
Cards of P5:
- CH, QH, KH
- 8C
- AD, 2D, QD, KD
- 1T, 4T, 8T, 9T, 13T, 20T, 21T
Waiting for P5 to discard 3 cards from:
- AH, CH, QH
- 8C
- AD, 2D, QD
(input): 1.1-1.17: this is not valid.
\ No newline at end of file
+---------+---------+---------+---------+---------+
| P1 | P2 | P3 | P4 | * P5 |
+---------+---------+---------+---------+---------+
| take | pass | pass | pass | push |
| slam! | pass | pass | pass | pass |
+---------+---------+---------+---------+---------+
- Call: KC
- Dog: AH, KS, EXC
+---------+---------+---------+---------+---------+
| P1 | P2 | P3 | P4 | * P5 |
+---------+---------+---------+---------+---------+
- Cards of P5: CH, QH, KH, 8C, AD, 2D, QD, KD, 1T, 4T, 8T, 9T, 13T, 20T, 21T
P5 may discard 3 cards from AH, CH, QH, 8C, AD, 2D, QD
ERROR: this is not possible
......@@ -5,7 +5,7 @@ bid pass
bid pass
bid pass
bid push
decl no
decl pass
decl slam
status
discard
\ No newline at end of file
tarot Copyright (C) 2018 Vivien Kraus
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `license' for details.
> setup -n 5
> <5 P1 P4 P3 P5 P5 P1 P1 P3 P5 P2 P3 P4 P2 P1 P1 P5 P5 P6
> bid take
> bid pass
> bid pass
> bid pass
> bid push
> decl pass
> decl slam
> status
A game for 5 players.
Waiting for the dog.
> discard
(input): 1.1-1.8: this is not valid.
>
\ No newline at end of file
+---------+---------+---------+---------+---------+
| P1 | P2 | P3 | P4 | * P5 |
+---------+---------+---------+---------+---------+
| take | pass | pass | pass | push |
| pass | slam! | pass | pass | pass |
+---------+---------+---------+---------+---------+
+---------+---------+---------+---------+---------+
| P1 | P2 | P3 | P4 | * P5 |
+---------+---------+---------+---------+---------+
- Cards of P1: 2H, 10H, 9C, QC, KC, 3D, 5D, 6S, 7S, JS, 5T, 10T, 11T, 18T, 19T
- Cards of P2: 9H, AC, 3C, 4C, 10C, 7D, JD, 2S, 5S, 8S, 10S, 2T, 3T, 14T, 17T
- Cards of P3: 8H, JH, 2C, 5C, 6C, CC, 4D, 8D, CD, 3S, CS, QS, 7T, 12T, 15T
- Cards of P4: 3H, 4H, 5H, 6H, 7H, 7C, JC, 6D, 9D, 10D, AS, 4S, 9S, 6T, 16T
- Cards of P5: CH, QH, KH, 8C, AD, 2D, QD, KD, 1T, 4T, 8T, 9T, 13T, 20T, 21T
ERROR: this is not possible