Knight Move

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Every input line is a position on a standard chess board. Each output line should be the possible positions a Knight piece can move to (starting from the top left most, if possible, then moving clockwise).

Info: http://en.wikipedia.org/wiki/Knight_(chess)

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

d4

Sample output:

c6 e6 f5 f3 e2 c2 b3 b5

Sample input:_

a5
h1

Sample output:

b7 c6 c4 b3
g3 f2

Sample input:_

a8
f6
b2
g5
d2
e1
h3
c7

Sample output:

c7 b6
e8 g8 h7 h5 g4 e4 d5 d7
a4 c4 d3 d1
f7 h7 h3 f3 e4 e6
c4 e4 f3 f1 b1 b3
d3 f3 g2 c2
g5 g1 f2 f4
e8 e6 d5 b5 a6 a8

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1yvl880.03712014/08/28 04:16:430B / 42B / 42B
2leonid880.03882014/08/28 04:34:240B / 42B / 42B
3mitchs980.03572014/08/28 03:28:420B / 38B / 58B
4jpl1030.03512014/09/02 22:41:400B / ?B / ?B
5Histocrat1220.03522014/09/05 23:21:380B / 49B / 69B
6mitchs810.12402017/10/08 16:36:291B / 34B / 45B
7mitchs (leonid)850.03902017/10/08 16:27:080B / 41B / 40B

Perl _

RankUserSizeTimeDateStatistics
1teebee690.03442014/09/03 06:31:130B / 36B / 30B
2brx810.02482014/09/06 05:15:530B / 36B / 43B
3test1890.04082014/09/02 22:24:410B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1leonid1160.09302014/09/05 14:55:250B / 68B / 34B
2evilbungle1200.08822014/09/06 00:51:240B / 72B / 41B
3wilkes1210.14362014/09/08 06:36:160B / 74B / 39B
4twobit1220.11292014/09/05 07:30:590B / 77B / 40B
5hallvabo1240.09732014/08/27 12:57:250B / 75B / 34B

Python3 _

RankUserSizeTimeDateStatistics
1wilkes1150.17632014/09/08 06:41:300B / 66B / 42B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1420.03472014/08/30 16:50:490B / 70B / 71B

AWK _

RankUserSizeTimeDateStatistics
1teebee1200.03152014/09/06 04:37:530B / 66B / 54B
2llhuii1270.03232014/09/06 01:27:100B / 64B / 61B
3llhuii(teebee)1180.03162014/09/08 17:32:570B / 64B / 54B

sed _

RankUserSizeTimeDateStatistics
1tails1800.05272014/09/07 16:49:190B / 42B / 125B

Bash _

RankUserSizeTimeDateStatistics
1mute2160.03592014/09/04 11:49:500B / 91B / 99B

xgawk _

RankUserSizeTimeDateStatistics
1teebee1200.03832014/09/07 18:42:260B / 66B / 54B
2llhuii1310.03442014/09/07 23:13:050B / 65B / 63B
3llhuii(teebee)1160.03232014/09/08 17:31:560B / ?B / ?B

R _

RankUserSizeTimeDateStatistics
1Vlo1930.39682014/08/27 23:25:160B / ?B / ?B

GolfScript _

RankUserSizeTimeDateStatistics
1whio520.06422014/09/05 07:49:432B / 16B / 33B
2tails520.07282014/09/07 13:29:560B / 22B / 29B
3whio470.06792014/09/09 07:00:040B / 11B / 35B
4whio(tails)490.07302014/09/09 03:57:012B / 13B / 33B
5tails (whio)500.07232014/09/08 15:15:122B / 14B / 33B

gs2 _

RankUserSizeTimeDateStatistics
1tails280.17952017/10/03 12:33:5013B / 6B / 9B

Language Ranking_

RankLangUserSizeScore
1gs2tails2810000
2GolfScriptwhio475957
3Perlteebee694057
4Rubymitchs813456
5Python3wilkes1152434
6Pythonleonid1162413
7xgawkllhuii(teebee)1162413
8AWKllhuii(teebee)1182372
9Haskellhenkma1421971
10sedtails1801555
11RVlo1931450
12Bashmute2161296

return to the top page