Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 91213

Chess is a strategic game played with two players on a checkered grid. This tag is for challenges related to chess or any variation on chess.

6 votes

Knight to fork!

Python, 144 bytes lambda a,b,c:(g(a)&g(b)&g(c)).pop() g=lambda x:{chr(ord(x[0])+i)+str(int(x[1])+j)for(k,l)in((1,2),(-1,2),(1,-2),(-1,-2))for(i,j)in((k,l),(l,k))} Attempt This Online! Performs "en pa …
mousetail 'he-him''s user avatar
2 votes

Is it a plausible chess move?

Python, 78 73 bytes lambda i,j:((a:=abs(i[0]-j[0]))==(b:=abs(i[1]-j[1])))|(a<1)|(b<1)|(a<3>b) Attempt This Online! Python, 65 bytes Alternate input format, credit to 97.100.97.109 lambda u,v,x,y:((a: …
mousetail 'he-him''s user avatar
3 votes

A challenge for rookies

Rust, 171 bytes ||(0..71).any(|x|(0..72).map(|y|(x/9,y/9,x%9,y%9,y/71+1)).any(|(x,y,a,b,l)|print!("{: <1$}",if a>7||b>7{' '}else if x==a&&y==b{'R'}else if x==a||y==b{'*'}else{'.'},l)>())) Playground …
mousetail 'he-him''s user avatar