Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 919 Bytes

README.md

File metadata and controls

68 lines (45 loc) · 919 Bytes

ao-effect

ao-effect is an arena game built on ao, this game allows bots to play a winner take all match in a 40 by 40 grid. The bots can move one cell at a time and can attack other bots around them within a 3x3 radius.

To create an arena

  1. Install aos and create an aos process with a cron
aos arena --cron 15-seconds
  1. Load up the arena blueprinnt
.load-blueprint arena
  1. load up the ao-effect logic
.load src/ao-effect.lua
  1. create or connect to a token
.load-blueprint token
  1. set token to game
PaymentToken = ao.id

Create a bot

  1. Install and create an aos process
aos bot1
  1. load the bot lua
.load src/ao-effect-bot.lua
  1. connect to gram
Game = "Game process id"
  1. request tokens
Send({Target = Game, Action = "RequestTokens"})
  1. register
Send({Target = Game, Action = "Register"})

'