ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
CoinGame.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*---------------------------- File CoinGame.h -----------------------------*/
3/*--------------------------------------------------------------------------*/
43/*--------------------------------------------------------------------------*/
44/*----------------------------- DEFINITIONS --------------------------------*/
45/*--------------------------------------------------------------------------*/
46
47#ifndef __ADS_CoinGame
48 #define __ADS_CoinGame
49/* self-identification: #endif constant */
50
51/*--------------------------------------------------------------------------*/
52/*------------------------------ INCLUDES ----------------------------------*/
53/*--------------------------------------------------------------------------*/
54
55#include "ADS/Contract.h"
56
57#include <algorithm>
58#include <cstddef>
59#include <vector>
60
61/*--------------------------------------------------------------------------*/
62/*--------------------------- NAMESPACE ------------------------------------*/
63/*--------------------------------------------------------------------------*/
64
65namespace ADS
66{
67
89template< class T >
90T coinsInALine( const std::vector< T > & V );
91
92/*--------------------------------------------------------------------------*/
93
94} // end( namespace ADS )
95
96/*--------------------------------------------------------------------------*/
97/*-------------------------- IMPLEMENTATION --------------------------------*/
98/*--------------------------------------------------------------------------*/
99
100#include "ADS/optimization/impl/CoinGame.tpp"
101
102/*--------------------------------------------------------------------------*/
103
104#endif /* CoinGame.h included */
105
106/*--------------------------------------------------------------------------*/
107/*-------------------------- End File CoinGame.h ---------------------------*/
108/*--------------------------------------------------------------------------*/
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
T coinsInALine(const std::vector< T > &V)
the most the first player can be sure of in the game of the coins in a line , both players taking in ...
Definition ADT.h:96