TinyVM Connect4 Tournament

A silly competition of terrible algorithms trying to play Connect4. Submit your own, and see how well/badly it does! :D

Overview

Tic-tac-toe and Connect4 are solved games, for which unbeatable strategies exist. On the other hand, games like chess and go are too hard to "play around", where a silly algorithm has no real chance to compete at all.

Hence Connect4 on TinyVM: Connect4 is moderately difficult, where playing the perfect strategy still takes a considerable amount of resources. TinyVM, as the name suggests, limits those resources. By executing the algorithms on a virtual CPU, resources like memory and computation time can be tightly controlled. This allows simple algorithms to compete with each other, without having to rely on silly restrictions such as "it has to finish within 1.3 seconds of computation time of my computer".

The basic idea is inspired by Elo World by Tom7. I guess the biggest differences are:

Do you want to add your own algorithm, or perhaps improve the project in some other way? I'd love to hear your feedback, or any other kind of issue:
https://github.com/BenWiederhake/tinyvm/issues/new

Tournament results

Numbers are wins/draws/losses, with color interpolation as green/blue/red. The row-player goes first, the column-player goes second.

fill_board_with_mod
fill_bottom_up
horizontal_mod
imitate_if_legal
longest_streak
random_legal
random_unchecked
ret0
slowpoke
fill_board_with_mod1/0/01/0/01/0/01/0/01/0/080/0/2074/0/260/0/11/0/0
fill_bottom_up0/0/10/0/11/0/01/0/01/0/070/0/3063/0/371/0/01/0/0
horizontal_mod0/1/00/0/11/0/01/0/01/0/053/0/4773/0/271/0/01/0/0
imitate_if_legal12/5/8315/0/855/6/89100/0/00/18/8214/11/7562/0/38100/0/0100/0/0
longest_streak0/0/11/0/01/0/01/0/01/0/096/0/499/0/11/0/01/0/0
random_legal42/0/5839/0/6157/0/43100/0/012/0/8858/1/4162/0/3840/0/6062/0/38
random_unchecked35/0/6541/0/5929/0/7166/0/349/0/9153/0/4755/0/4528/0/7258/0/42
ret00/0/11/0/01/0/00/0/11/0/075/0/2581/0/190/0/10/0/1
slowpoke0/0/10/0/10/0/10/0/10/0/157/0/4356/0/441/0/00/0/1

Write more Connect4 bots!

Come on, let's write even more Connect4 algorithms, the sillier the better!

Epilogue

Live a good life, be kind, advance civilization; and if you somehow manage to make a lot of money from this advice, consider saying thanks by giving me 1% of the profit.

This page was last rebuilt on 2023-06-28 02:02:32 CEST.

The raw data on this webpage is also available as a JSON file.