Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axestein/web3-zombiegame
https://github.com/axestein/web3-zombiegame
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/axestein/web3-zombiegame
- Owner: Axestein
- Created: 2024-01-27T12:56:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-27T13:05:14.000Z (12 months ago)
- Last Synced: 2024-01-27T14:23:47.593Z (12 months ago)
- Language: Solidity
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZombieFactory Contract
Description:
This Solidity contract serves as a foundation for a simple zombie-themed game on the Ethereum blockchain.
It enables the creation of zombies with unique names and DNA, and it emits events to signal their creation.
Features:Zombie Creation:
createRandomZombie(string memory _name): Generates a zombie with a random DNA and the given name.
DNA Generation:
_generateRandomDna(string memory _str): Calculates a random DNA based on a string input, ensuring unique zombies.
Event Emission:
NewZombie: Emitted when a new zombie is created, providing its ID, name, and DNA for external interactions.
Usage:Deploy the contract to an Ethereum network.
Interact with the createRandomZombie function to create new zombies.
Listen for the NewZombie event to track zombie creation and react accordingly.
Files:ZombieFactory.sol: Contains the Solidity code for the contract.
README.md: This file (you're reading it now!).
Dependencies:Solidity compiler (e.g., solc)
Ethereum development environment (e.g., Remix, Truffle, Hardhat)
Web3 library for interacting with the contract
Author:Aditya Kumar singh
Contributions:
Pull requests are welcome! Please follow the project's coding style and conventions.
Contact:
For questions or feedback, contact [[email protected]].