The next step is to define the main contract behind our game: Ctontine. In Solidity, when a contract implements an interface, the class agrees to implement all of its methods. Hence, if you miss implementing a function defined in the inherited interface, you’ll get the following error (in Remix):
![](https://static.packt-cdn.com/products/9781788475686/graphics/assets/58a2c399-fd91-46e4-abd9-c4470aff11f6.png)
As we do for inheritance, we use the is keyword to implement the interface, as follows:
contract Ctontine is Itontine {..}
Now, let's fill this empty contract. Within the preceding bracket, we start by declaring the following contract states:
mapping (address => uint256 ) public Tpension;
Cplayer.player[] public active_players;
Cplayer.player[] public eleminated_players;
mapping (address => uint) public ping_time;
uint256 public Lindex;
Cplayer Tplayer:
Here are the contract states:
- Tpension:...