color 15,0?"we are in prog 0.bas"?"press Enter"pause'if needed, enter full path to sbasicg.exerun "sbasicg -n 8q.bas"??"now we are back from 8q.bas"pauseend

'The Eight Queens puzzle is the problem of placing'eight chess queens on an 8x8 chessboard so that no'two queens threaten each other. Thus, a solution'requires that no two queens share the same row,'column, or diagonal. The eight queens puzzle is an'example of the more general n queens problem of'placing n non-attacking queens on an nxn chessboard,'for which solutions exist for all natural numbers n'with the exception of n=2 and n=3.'The following is adapted Pascal program by Niklaus'Wirth. It finds all (and all FUNDAMENTAL) solutions'to the 4-9 queens problem (or more)color 15,0while 1 z=0:f=0:input "N-queens - Board dim(4-9) (0-end):",n if n<4 or n>9 then cls:delay 300:end dim s(n),t(2*n),u(-n to n),d(n),w():cls Srch(1) ?z;" total postions - ";len(w);" fundamental"wendsub Srch(c) local r for r=1 to n if !s(r) and !t(r+c) and !u(r-c) d(c)=r:s(r)=1:t(r+c)=1:u(r-c)=1 if c<n Srch(c+1) else show fi s(r)=0:t(r+c)=0:u(r-c)=0 fi nextendsub showa=""if z k=ubound(w) for j=0 to k e=w(j):l=j+1 for i=1 to n:if e(d(i))<>n+1-i then exit for next:if i>n then a=a+" RL-"+l for i=1 to n:if e(n+1-d(i))<>i then exit for next:if i>n then a=a+" RR-"+l for i=1 to n:if d(i)<>n+1-e(n+1-i) then exit for next:if i>n then a=a+" R2-"+l for i=1 to n:if d(i)<>n+1-e(i) then exit for next:if i>n then a=a+" HH-"+l for i=1 to n:if d(n+1-i)<>e(i) then exit for next:if i>n then a=a+" VV-"+l for i=1 to n:if d(n+1-e(i))<>n+1-i then exit for next:if i>n then a=a+" DN-"+l for i=1 to n:if d(e(i))<>i then exit for next:if i>n then a=a+" D1-"+l nextfiif a="":f++:a=" * * * "+str(f):w << d:fiz++:?z,:for i=1 to n do ?chr(96+i);d(i),:?aend

Round157 asked, "How can sbasic.exe(console version) be used in the Atom editor?".I have read through all the responses, I may have missed something, but the question, in my opinion, has not been answered. If 'yes' then how? I too would like to know. Because if it can, then perhaps, it will work with Geany (my editor of choice).J

I just found my AEdit for SB and check is still work yes work like a charm.. if anyone want to try/use let me know

Jsali...i don't say that geany don't have syntax coloring then that is slow andclumsey to use ..for me ..and require configuration file (tommaz always patronize about that one ).....soo..do i need to upload it here ?