//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract SimpleStore { function set(uint _value) public { value = _value; } function get() public constant returns (uint) { return value; } uint value; } //Working: Player starts the game by entering their name and a pokemon is selected randomly from the database as users first pokemon and require makes sure that the func is called only once.The player starts with only one pokemon in the begining of the game. Mapping and addressing can be used to track the owenship of the pokemon and number of pokemons the owner has.Player Buys/sells pokefood,poekmon eggs and pokemons.Pokemon feeds on pokefood for evolving and player can buy eggs and hatch them for increasing their pokemon count. pragma solidity ^0.4.19; contract PokemonFactory { struct Pokemon { string name; string type; } Pokemon[] public pokemons; function _createPokemon(string _name, uint _dna) private { zombies.push(Zombie(_name, _dna)); // and fire it here } function createRandomZombie(string _name) public { uint randDna = _generateRandomDna(_name); _createZombie(_name, randDna); }
0.4.18