Peter Inglesby :: random.py

This bot has played 2079 games (195 wins / 5 draws / 1879 losses).

Play against this bot as X or as O.

These bots have done best aganist random.py...

Bot P W D L Points Size From beginner One hit wonder Goldfish
Jon Bannister : : anybot_r282.py (v5) 10 10 0 0 10 974 False False True
Dan Miller : : board_bot.py 10 10 0 0 10 596 False False False
house : : centrist.py 10 10 0 0 10 None None None None
Dilwoar Hussain : : dee-bot.py (v12) 10 10 0 0 10 306 False False False
Ian Ozsvald : : ian12.py 10 10 0 0 10 943 False False True

...and these bots have done worst

Bot P W D L Points Size From beginner One hit wonder Goldfish
Stefano Chiodino : : bot.py (v2) 10 7 0 3 4 183 False False True
Luke Spademan : : lossingbot.py (v3) 10 6 0 4 2 129 False False True
house : : anarchist.py 10 4 0 6 -2 None None None None
James Campbell : : horrible.py (v4) 10 0 0 10 -10 246 False False True
Ronan Murphy : : loser.py 10 0 0 10 -10 105 False False True

All standings against random.py

The code

      
import random

from botany_connectfour import game


def get_next_move(board):
    available_moves = game.available_moves(board)
    return random.choice(available_moves)