Commit 43d61836 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Add the tarot-features program

This is a port of the previous vala program.  It is very big because
all feature functions are different, obviously.
parent 3232ad76
......@@ -46,8 +46,10 @@
/doc/players-and-cards
/doc/players-and-cards.c
/doc/tarot-deal.man
/doc/tarot-features.man
/doc/tarot-figures
/doc/tarot-mcts.man
/doc/tarot-stacking.man
/doc/tarot-status.man
/doc/tarot-tune
/doc/tarot.info
......@@ -128,6 +130,7 @@
/src/tarot-app/tarot
/src/tarot-app/tarot-deal
/src/tarot-app/tarot-en
/src/tarot-app/tarot-features
/src/tarot-app/tarot-mcts
/src/tarot-app/tarot-parser-stamp
/src/tarot-app/tarot-stacking
......
......@@ -20,13 +20,16 @@ dist_man6_MANS += \
%reldir%/tarot.man \
%reldir%/tarot-status.man \
%reldir%/tarot-deal.man \
%reldir%/tarot-mcts.man
%reldir%/tarot-mcts.man \
%reldir%/tarot-stacking.man \
%reldir%/tarot-features.man
MAINTAINERCLEANFILES += \
$(srcdir)/%reldir%/tarot.man \
$(srcdir)/%reldir%/tarot-status.man \
$(srcdir)/%reldir%/tarot-deal.man \
$(srcdir)/%reldir%/tarot-mcts.man \
$(srcdir)/%reldir%/tarot-stacking.man
$(srcdir)/%reldir%/tarot-stacking.man \
$(srcdir)/%reldir%/tarot-features.man
help2man_verbose = $(help2man_verbose_@AM_V@)
help2man_verbose_ = $(help2man_verbose_@AM_DEFAULT_V@)
......@@ -51,3 +54,7 @@ $(srcdir)/%reldir%/tarot-mcts.man: src/tarot-app/tarot_mcts.c
$(srcdir)/%reldir%/tarot-stacking.man: src/tarot-app/tarot_stacking.c
$(MAKE) $(AM_MAKEFLAGS) src/tarot-app/tarot-stacking
$(help2man_verbose) ./pre-inst-env help2man tarot-stacking > $@
$(srcdir)/%reldir%/tarot-features.man: src/tarot-app/tarot_features.c
$(MAKE) $(AM_MAKEFLAGS) src/tarot-app/tarot-features
$(help2man_verbose) ./pre-inst-env help2man tarot-features > $@
......@@ -14,4 +14,5 @@ src/tarot-app/tarot_status.c
src/tarot-app/tarot_deal.c
src/tarot-app/program_commons.c
src/tarot-app/tarot_mcts.c
src/tarot-app/tarot_stacking.c
\ No newline at end of file
src/tarot-app/tarot_stacking.c
src/tarot-app/tarot_features.c
\ No newline at end of file
......@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: tarot 0.4.2.83-ebdc-dirty\n"
"Report-Msgid-Bugs-To: vivien@planete-kraus.eu\n"
"POT-Creation-Date: 2019-08-25 11:07+0200\n"
"PO-Revision-Date: 2019-08-25 11:11+0200\n"
"POT-Creation-Date: 2019-08-25 15:56+0200\n"
"PO-Revision-Date: 2019-08-25 15:58+0200\n"
"Last-Translator: Vivien Kraus <vivien@planete-kraus.eu>\n"
"Language-Team: French\n"
"Language: fr\n"
......@@ -37,13 +37,13 @@ msgstr "Affiche l'information de version et quitte"
#: src/tarot-app/main.vala:83 src/tarot-app/main.vala:93
#: src/tarot-app/tarot_deal.c:70 src/tarot-app/tarot_mcts.c:100
#: src/tarot-app/tarot_stacking.c:87
#: src/tarot-app/tarot_stacking.c:86 src/tarot-app/tarot_features.c:821
msgid "version"
msgstr "version"
#: src/tarot-app/main.vala:100 src/tarot-app/tarot_status.c:58
#: src/tarot-app/tarot_deal.c:110 src/tarot-app/tarot_mcts.c:151
#: src/tarot-app/tarot_stacking.c:117
#: src/tarot-app/tarot_stacking.c:116 src/tarot-app/tarot_features.c:850
#, c-format
msgid ""
"%s (libtarot %s)\n"
......@@ -1113,7 +1113,7 @@ msgstr "fini"
msgid "score"
msgstr "score"
#: src/tarot-app/tarot_status.c:96
#: src/tarot-app/tarot_status.c:96 src/tarot-app/tarot_features.c:378
#, c-format
msgid "Error: this game is not finished yet.\n"
msgstr "ERREUR : cette partie n'est pas terminée.\n"
......@@ -1140,7 +1140,7 @@ msgstr ""
"distribution. Veuillez réessayer avec une graine différente.\n"
#: src/tarot-app/tarot_deal.c:69 src/tarot-app/tarot_mcts.c:99
#: src/tarot-app/tarot_stacking.c:86
#: src/tarot-app/tarot_stacking.c:85 src/tarot-app/tarot_features.c:820
msgid "help"
msgstr "aide"
......@@ -1216,13 +1216,13 @@ msgstr ""
"habituellement « default ».\n"
#: src/tarot-app/tarot_deal.c:158 src/tarot-app/tarot_mcts.c:273
#: src/tarot-app/tarot_stacking.c:140
#: src/tarot-app/tarot_stacking.c:139 src/tarot-app/tarot_features.c:873
#, c-format
msgid "Error: extra arguments:\n"
msgstr "Erreur : arguments supplémentaires :\n"
#: src/tarot-app/tarot_deal.c:160 src/tarot-app/tarot_mcts.c:275
#: src/tarot-app/tarot_stacking.c:142
#: src/tarot-app/tarot_stacking.c:141 src/tarot-app/tarot_features.c:875
#, c-format
msgid "- %s\n"
msgstr "- %s\n"
......@@ -1268,7 +1268,7 @@ msgstr "paramètre-aléatoire"
msgid "parameter-agreed"
msgstr "paramètre-accord"
#: src/tarot-app/tarot_mcts.c:107 src/tarot-app/tarot_stacking.c:88
#: src/tarot-app/tarot_mcts.c:107 src/tarot-app/tarot_stacking.c:87
msgid "generate"
msgstr "générer"
......@@ -1422,7 +1422,7 @@ msgstr ""
"Erreur : la capacité de mémoire est épuisée. Veuillez passer --mémoire-"
"max=TAILLE.\n"
#: src/tarot-app/tarot_stacking.c:106
#: src/tarot-app/tarot_stacking.c:105
#, c-format
msgid ""
"Usage: tarot-stacking [OPTIONS]... < GAME\n"
......@@ -1439,6 +1439,36 @@ msgstr ""
"- -g, --générer : joue avec les mêmes paramètres jusqu'à la fin de la\n"
" partie.\n"
#: src/tarot-app/tarot_features.c:739
#, c-format
msgid "Error: we don't know the cards of player %s.\n"
msgstr "Erreur : on ne connaît pas les cartes du joueur %s.\n"
#: src/tarot-app/tarot_features.c:770
#, c-format
msgid "Error: we don't know the discard.\n"
msgstr "Erreur : on ne connaît pas les cartes de l'écart.\n"
#: src/tarot-app/tarot_features.c:822
msgid "encoded"
msgstr "encodées"
#: src/tarot-app/tarot_features.c:840
#, c-format
msgid ""
"Usage: tarot-features [OPTIONS]... < GAME > FEATURES\n"
"Extract the game features. Options:\n"
"- -h, --help: print this message and exit;\n"
"- -v, --version: print the program version and exit;\n"
"- -e, --encoded: one-hot encode the categorical features.\n"
msgstr ""
"Utilisation : tarot-features [OPTIONS]... < PARTIE\n"
"Extrait les caractéristiques de la PARTIE. Options :\n"
"- -h, --aide : affiche ce message et quitte ;\n"
"- -v, --version : affiche la version du programme et quitte ;\n"
"- -e, --encodées : utilise un encodage one-hot pour les\n"
" caractéristiques catégorielles.\n"
#~ msgid "Hello, world!\n"
#~ msgstr "Bonjour, le monde !\n"
......@@ -2010,9 +2040,6 @@ msgstr ""
#~ msgid "PNG height (defaults to 480)"
#~ msgstr "Hauteur du PNG (par défaut, 480)"
#~ msgid "encoded"
#~ msgstr "encodées"
#~ msgid "Encode the game features"
#~ msgstr "Encode les caractéristiques de la partie"
......
......@@ -25,3 +25,4 @@ include %reldir%/tarot-status.am
include %reldir%/tarot-deal.am
include %reldir%/tarot-mcts.am
include %reldir%/tarot-stacking.am
include %reldir%/tarot-features.am
# tarot-features.am
#
# Copyright (C) 2019 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/>.
bin_PROGRAMS += %reldir%/tarot-features
%canon_reldir%_tarot_features_SOURCES = \
%reldir%/tarot_features.c
%canon_reldir%_tarot_features_LDADD = \
%reldir%/libprogram-commons.la \
lib/libgnu.la \
src/libtarot/libtarot.la \
$(LTLIBINTL) \
$(LTLIBTHREAD) \
@INTL_MACOSX_LIBS@
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment