Timeline for Is this Tic-Tac-Toe board valid?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 17, 2017 at 20:13 | history | edited | ixodesbeta | CC BY-SA 3.0 |
improved clarity
|
Dec 16, 2016 at 4:40 | history | edited | ixodesbeta | CC BY-SA 3.0 |
incorporated suggested improvements
|
Dec 15, 2016 at 8:35 | comment | added | Jonathan Carroll |
Better yet; x=scan(); if(sum(x)%in%4:5,all(apply(combn(which(x==(sum(x)<5)),3),2,sum)!=15),F) and input as 1 and 0 . 82 bytes.
|
|
Dec 15, 2016 at 8:29 | comment | added | Jonathan Carroll |
Save 2 bytes if you use if() instead: f=function(x) if(sum(x)%in%4:5,all(apply(combn(which(x==(sum(x)<5)),3),2,sum)!=15),F) . Not extensively tested mind you. Backticks ruin code, but it's backtick if backtick( .
|
|
Dec 14, 2016 at 0:12 | history | edited | ixodesbeta | CC BY-SA 3.0 |
missing a few words
|
Dec 13, 2016 at 22:06 | review | First posts | |||
Dec 13, 2016 at 22:08 | |||||
Dec 13, 2016 at 22:03 | history | answered | ixodesbeta | CC BY-SA 3.0 |