Video Walkthrough: https://youtu.be/blVIzpd-UQY
- Must have ArConnect extension installed and a wallet setup
- visit https://ide.betteridea.dev and connect wallet using the bottom left connect button
- Create a new project from the sidebar
Enter name, select new process, enter your name in process name (Process name will be used to identify the bot), select AO Bot template and Regular filetype, and click Create Project
- Once created, a file will open with the code for an AO bot. Click on the run button on top right
The output tab should show "undefined" if the code runs successfully (since we are not printing anything and there is no error)
- Head back to the terminal and run
Name
, it should print the Name you assigned to the process
- Now we need to set a Game ID to join the game
Run Game = "VazEz2_41Y_kj5pvGrWBCAErEb2lIFg8hDgsMtYlTIU"
in Terminal
Then run just Game
and it should print the value of Game
- To join the game we need tokens
Request for tokens using Send({ Target = Game, Action = "RequestTokens" })
You will receive a credit notice from the game process
Run Send({ Target = Game, Action = "Balance" })
to get your balance
You can also view these messages in the Inbox tab
- Pay the amount and join the game
Run Send({Target = Game, Action = "Transfer", Quantity = "1000", Recipient = Game})
This will send 1000 tokens to the game process and allow your bot to participate in the deathmatch
You will have received a Debit Notice notification and now the bot can move in the grid and perform attacks
You can view your bot in the grid game by visiting https://grid_ao.g8way.io/?id=VazEz2_41Y_kj5pvGrWBCAErEb2lIFg8hDgsMtYlTIU
You will also keep receiving updates about your bot in the IDE
May the best bot win!
More about the AO Grid game and detailed instructions at https://protocol.land/#/repository/75a0aca8-f971-435f-8679-7fc31492e669
Cool Bro ...Thanks for this