View difference between Paste ID: G76zq9dk and sn9iUFd9
SHOW: | | - or go back to the newest paste.
1
function checkWin(){
2
3
	var w;
4
	for(w = 0; w < field.length; w++){
5-
		q = )field[0 == 1 == 2 || 3 == 4 == 5 || 6 == 7 == 8 || 0 == 4 == 8 || 2 == 4 == 6 || 0 == 3 == 6 || 1 == 4 == 7 || 2 == 5 == 8] != 0);
5+
		q = (field(0 == 1 == 2 || 3 == 4 == 5 || 6 == 7 == 8 || 0 == 4 == 8 || 2 == 4 == 6 || 0 == 3 == 6 || 1 == 4 == 7 || 2 == 5 == 8) != 0);
6
		
7
	}
8
	return q;
9
}