Member-only story
Solve Kaggle’s ConnectX competition question by choosing the centremost column of the game board
I have been spending the last several days studying Kaggle’s Reinforcement Learning competition question, ConnectX. I find this competition question to be particularly difficult because it is a simulation. The programmer must write the code and submit it in a py file. The py file then plays ConnectX against the other players, who are also programmers.
I am also more accustomed to working with Google Colab, so I am having to develop new ways of working to be able to successfully find a solution to this problem. Because this competition question is so new, I have had to look at the code of other programmers to try to get a handle on what is going on. In addition, I am only allowed to submit two programs a day, which makes it very difficult for me to try to debug the program!
In my last post I wrote about a very simple program that only generated a random number to solve the problem. Although this was a very basic program, it gave enough detail to be able to successfully complete the game and make a submission. In this post I have found some code that enables the programmer to place the piece in the middle column of the game board.
In order to run this program, I had to first install the environment:-