Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Slither.io
// @version 0.35
// @description AI powered bot for slither.io!
// @author Alex
// @match http://slither.io
// ==/UserScript==
var Vector2 = (function() {
from sklearn.tree import DecisionTreeRegressor
import pandas as pd
import numpy as np
train = pd.read_csv('train.csv').set_index('_id')
X = np.array(train.drop(['gain'], 1))
y = np.array(train['gain'])
model = DecisionTreeRegressor(max_depth=7)
model.fit(X, y)