TL;DR It's a battlefield where https://www.aigaming.com fights for BitCoin! !! If you are interested in AI or python, join us! !!
A story that noya, who is a beginner in both python and AI, started learning on a platform called AI Gaming
AIgaming.com is a platform that allows computer programs (bots) to challenge each other in games, puzzles and competitions, with the added incentive of winning cryptocurrency (Bitcoin and Satoshi)
It is a platform for players to create bots to play competitive games (○ × games, Go, etc.) with each other and compete for virtual currency. And that. Actually, there is also a column to enter about Oppoturnity, so it may be one aspect as a basis for finding AI human resources, but Oppoturnity can be ignored, so I think that you can register without worrying about it.
How to Start Registration is very easy. As expected, it is becoming more sophisticated.
About 20 kinds of games have been released, from simple games to difficult games.
Nought and Crosses ○ × games that I was enthusiastic about when I was in elementary school
Battle Ship The one who finds the opponent's ship and annihilate it quickly wins. (The position of the ship is not visible to each other, and the location is estimated from the information at the time of landing.)
Match game Open two panels and get points if they are the same! Concentration. Since the URL of the image is passed to both the back and front of the panel, first determine what each panel is (animal, language, place) and start by reducing unnecessary open.
Some Satoshi will be distributed at the time of registration, and you can increase Satoshi by advancing the mission. It seems that you can get up to 40,000 Satoshi now.
Even if I didn't care too much at first, if I was playing the ○ × game, it would have been around 3000 Satoshi. There is also a way to fight 100 consecutive battles with practice bots and mark a winning percentage of 50% or more.
You can also fight for Satoshi. However, it seems that cases of betting and fighting are still rare. In the future, put all the saved Satoshi into it! Is there a battle like this?
Under investigation. (Not very interested)
Enter the coding screen from "EDITOR" on the top menu.
After that, when you select a game with Select Game Type, the bot code that "works for the time being" is written in each game. If you do nothing and press Run in the upper right corner, the game will usually start and you will lose.
Trouble
In my case, after registering, I didn't like the user account name, so I changed it, but in that case the bot name did not match the registered bot name and the game did not start.
The default bot name is (account name) -defbot
, so either create the corresponding bot with `MY ACCOUNT >> BOT MANAGEMENT`
, or create a bot with the old account name. We will respond, such as whether to use it.
Coding
Let's code with reference to Sample.
Basically, the game master takes turns calling the game information as an argument to a certain function (`calculateMove (gameState)`
in the case of ○ × game), so implement the contents.
The structure of the gameState and the format of the return value are fairly well documented in the game description at https://www.aigaming.com/Help or in the Programmer's Reference.
In the case of ○ × game, the state of the board is handed over as a one-dimensional array with gameState.Board
, so understand this and set the position n where you put your mark to
{Positison: n It's OK if you return it with a JSON object called} ```.
You can select your opponent from the Select Opponent dropdown.
--housebot-practice: Weak bot. Let's beat this guy first. --housebot-competition: A strong bot. I haven't won yet at this point.
You can nominate a bot to play against by entering it directly instead of dropping down. What's interesting is that you can also play against yourself. You can play against each other by opening two browsers, designating each other and running. (There is also a mission to play against each other bots you made, so please try it by all means)
--Win the competition bot --Challenge other games in cooperation with the cloud platform for image recognition and natural sentence analysis
So far, I have briefly introduced AI Gaming. I think it's a good foundation that you can complete with a browser and easily learn about python and AI according to your level.
That's all for today.