Commit 983824b9 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Get rid of the simulation code

parent faf0d9d9
......@@ -40,7 +40,6 @@ include %reldir%/pkgconfig/Makefile.am
include %reldir%/cards/Makefile.am
include %reldir%/counter/Makefile.am
include %reldir%/layout/Makefile.am
include %reldir%/simulation/Makefile.am
include %reldir%/features/Makefile.am
include %reldir%/solo/Makefile.am
include %reldir%/guile/Makefile.am
......
......@@ -25,7 +25,6 @@
#include <tarot/game.h>
#include <tarot/counter.h>
#include <tarot/layout.h>
#include <tarot/simulation.h>
#include <tarot/features.h>
#include <tarot/solo.h>
#include <tarot/perceptron.h>
......
# tarot implements the rules of the tarot game
# Copyright (C) 2019 Vivien Kraus
# 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, version 3 of the License.
#
# 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/>.
AM_CPPFLAGS += -I $(srcdir)/%reldir% -I %reldir%
tarotinclude_HEADERS += %reldir%/tarot/simulation.h
src_libtarot_libtarot_la_SOURCES += \
%reldir%/simulation.c
ENUM_HEADER_FILES += %reldir%/tarot/simulation.h
INTROSPECTED_SOURCES += %reldir%/simulation.c
This diff is collapsed.
/* tarot implements the rules of the tarot game
* Copyright (C) 2019 Vivien Kraus
*
* 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, version 3 of the License.
*
* 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/>.
*/
#ifndef H_TAROT_SIMULATION_INCLUDED
#define H_TAROT_SIMULATION_INCLUDED
#include <stddef.h>
#include <tarot/player.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
struct yarrow256_ctx;
struct TarotGame;
typedef enum
{
TAROT_SIMULATION_OK,
TAROT_SIMULATION_INVSEED
} TarotSimulationError;
/**
* tarot_simulate:
* @game: (type TarotGame):
*/
TarotSimulationError tarot_simulate (struct yarrow256_ctx *prng,
struct TarotGame *game);
/**
* tarot_simulate_random:
* @game: (type TarotGame):
*/
TarotSimulationError tarot_simulate_random (struct yarrow256_ctx *prng,
struct TarotGame *game);
/**
* tarot_simulate_agreed:
* @game: (type TarotGame):
*/
TarotSimulationError tarot_simulate_agreed (struct yarrow256_ctx *prng,
struct TarotGame *game);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* not H_TAROT_SIMULATION_INCLUDED */
/* Local Variables: */
/* mode: c */
/* End: */
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