Wednesday, March 20, 2019

Getting started with AI Programming through Codingame

From simple bots like Cleverbot, Akinator to complex bots like video game AIs and self driving cars, Artificial Intelligence has become an important part of our daily life.

Prerequisites to get started with AI:

All you need to know is a programming language.


Getting Started with AI Programming through Codingame:

Codingame is the best platform to get started with Artificial Intelligence.

Lets start with a small racing game. In this game you have to code to drive a car faster than your opponents in a small track to complete 3 laps.



Step 2: Choose your favorite programming language of your choice


Step 3: Click "Play my code" button 



You'll be able to see the game playing


If your pod(car) is not moving, check if you are printing the correct x and y coordinates that you get in the input.

Step 4: Compete with the boss.


You may have to increase your thrust. (Beware that too much speed can affect your car when cornering)


Step 5: Click the submit button once you defeat the boss!


Step 6: You'll get promoted to the next league where you will face difficult opponents and you'll have to work with extra details.

The league system:

To get promoted to the next league you have to get more points than the boss in that level. (This means that your code must win more than 60% of the games). 




For the lower leagues if, else statements should be sufficient. By the time you reach Gold, you'll have a great knowledge how to predict the future and how to counter an opponent.You would have created a great AI bot by then.


Step 7: Bot programming challenges and community contests 

You can check out other AI challenges in the bot programming section in the Compete tab. Also watch out for the upcoming community contests.



Best of luck in advance for your first AI bot! Share your experience in comments.

No comments:

Post a Comment