//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.25; contract SceneOuverte { string[12] passagesArtistes; uint creneauxLibres = 12; uint tour; function sInscrire(string nomDArtiste) public { if (creneauxLibres>0) { passagesArtistes[12-creneauxLibres] = nomDArtiste; creneauxLibres -= 1; } } function passerArtistesuivant() public { if (tour < 12-creneauxLibres) tour+=1; } function artisteEnCours() public constant returns (string) { if (tour == 12-creneauxLibres) return "FIN"; else return passagesArtistes[tour]; } }
0.4.25