Skip to content

Instantly share code, notes, and snippets.

@ropats16
ropats16 / grid.lua
Created April 13, 2024 09:12
Gist for GRID Game setup
-- CRED = "Sa0iBLPNyJQrwpTTG-tWLQU-1QeUAJA73DdxGGiKoJc"
Version = "0.3"
-- Attack info
LastPlayerAttacks = LastPlayerAttacks or {}
CurrentAttacks = CurrentAttacks or 0
TenSecondCheck = TenSecondCheck or 0
-- grid dimensions
Width = 16
@ropats16
ropats16 / ao-effect-bot.lua
Created February 9, 2024 16:58
Arena Debugging
-- Initializing global variables to store the latest game state and game host process.
LatestGameState = LatestGameState or nil
Game = Game or nil
InAction = InAction or false
Logs = Logs or {}
colors = {
red = "\27[31m",
green = "\27[32m",
@ropats16
ropats16 / contracts...ExtraStorage.sol
Created June 16, 2022 12:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./SimpleStorage.sol";
contract ExtraStorage is SimpleStorage {
// + 5
// override
function store(uint256 _favouriteNumber) public override {
favouriteNumber = _favouriteNumber + 5;