Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Xs and Os Referee by mozurin
"use strict";
function xoReferee(data)
{
const m = data.join('').match(
new RegExp(
'([XO])..\\1..\\1|' +
'([XO])...\\2...\\2$|' +
'([XO]).\\3.\\3..$|' +
'([XO])\\4\\4(|...|.{6})$'
)
);
return m && m.filter(e => e && e.length == 1)[0] || 'D';
}
June 26, 2018
Comments: