Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges 8 coexisting queens

J, 20 bytes '01'{~#:2^2842 A.i.8 Attempt This Online! Non-tacit program that outputs implicitly in a REPL. Shoutout to Raul (Miller)#5220 in the APL farm discord for thinking of this cool idea...

posted 1y ago by south‭  ·  edited 1y ago by south‭

Answer
#2: Post edited by user avatar south‭ · 2022-09-30T04:52:48Z (over 1 year ago)
  • # [J](https://www.jsoftware.com), 25 bytes
  • ```
  • ,"2":"0#:2^".&>'41506372'
  • ````
  • [Attempt This Online!](https://ato.pxeger.com/run?1=m70wa8GCpaUlaboWe1OTM_J1lIyUrJQMlK2M4pT01OzUTQxNDcyMzY3UIWqgSmFaAA)
  • Non-tacit program that outputs implicitly in a REPL.
  • ```
  • ,"2":"0#:2^".&>'41506372'
  • '41506372' : Configuration of queens
  • ".&> : Eval each character to yield list of ints
  • 2^ : Raise 2 to each int
  • #: : Creates table of conversions to binary
  • ":"0 : Stringify each cell, creates rank 8 8 1 matrix
  • ,"2 : Ravel each nested table into a list
  • # [J](https://www.jsoftware.com), 20 bytes
  • ```
  • '01'{~#:2^2842 A.i.8
  • ```
  • [Attempt This Online!](https://ato.pxeger.com/run?1=m70wa8GCpaUlaboWO1KTM_LVDQzVq-uUrYzijCxMjBQc9TL1LCDSUFUw1QA)
  • Non-tacit program that outputs implicitly in a REPL. Shoutout to Raul (Miller)#5220 in the APL farm discord for thinking of this cool idea.
  • ```
  • 2842 A.i.8 : Anagram 2842 of 0..8 -> 0 4 7 5 2 6 1 3
  • 2^ : Raise 2 to each value
  • #: : Create matrix of each binary conversion
  • '01'{~ : Index '01' using each value of the result
#1: Initial revision by user avatar south‭ · 2022-09-29T21:48:09Z (over 1 year ago)
# [J](https://www.jsoftware.com), 25 bytes

```
,"2":"0#:2^".&>'41506372'
````

[Attempt This Online!](https://ato.pxeger.com/run?1=m70wa8GCpaUlaboWe1OTM_J1lIyUrJQMlK2M4pT01OzUTQxNDcyMzY3UIWqgSmFaAA)

Non-tacit program that outputs implicitly in a REPL.
```
,"2":"0#:2^".&>'41506372'
               '41506372'  : Configuration of queens
           ".&>            : Eval each character to yield list of ints
         2^                : Raise 2 to each int
       #:                  : Creates table of conversions to binary
   ":"0                    : Stringify each cell, creates rank 8 8 1 matrix
,"2                        : Ravel each nested table into a list