Click here to Skip to main content
15,881,172 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774728-Mar-16 9:54
Member 1235774728-Mar-16 9:54 
AnswerRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Ron Nicholson28-Mar-16 9:57
professionalRon Nicholson28-Mar-16 9:57 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774728-Mar-16 11:51
Member 1235774728-Mar-16 11:51 
AnswerRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Patrice T28-Mar-16 10:50
mvePatrice T28-Mar-16 10:50 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774728-Mar-16 12:07
Member 1235774728-Mar-16 12:07 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Patrice T28-Mar-16 12:13
mvePatrice T28-Mar-16 12:13 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774728-Mar-16 13:34
Member 1235774728-Mar-16 13:34 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
OriginalGriff28-Mar-16 20:30
mveOriginalGriff28-Mar-16 20:30 
Bits might be more efficient: 64 bits fits in a single machine word on most machines these days, and the conversion from coordinates to mask is trivial:
C#
long bitmask = ((long)1) << ((y << 3) + x);
Where x and y are integer coordinates.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774730-Mar-16 3:03
Member 1235774730-Mar-16 3:03 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
OriginalGriff30-Mar-16 3:13
mveOriginalGriff30-Mar-16 3:13 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
harold aptroot28-Mar-16 22:57
harold aptroot28-Mar-16 22:57 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774730-Mar-16 3:05
Member 1235774730-Mar-16 3:05 
QuestionSession inside webmethod Pin
Sandy Safwat28-Mar-16 5:35
Sandy Safwat28-Mar-16 5:35 
QuestionRe: Session inside webmethod Pin
ZurdoDev28-Mar-16 7:35
professionalZurdoDev28-Mar-16 7:35 
PraiseAdd connetion properties Pin
Member 770765026-Mar-16 6:49
Member 770765026-Mar-16 6:49 
GeneralRe: Add connetion properties Pin
Dave Kreskowiak26-Mar-16 7:48
mveDave Kreskowiak26-Mar-16 7:48 
GeneralRe: Add connetion properties Pin
Member 770765026-Mar-16 8:01
Member 770765026-Mar-16 8:01 
GeneralRe: Add connetion properties Pin
Dave Kreskowiak26-Mar-16 8:44
mveDave Kreskowiak26-Mar-16 8:44 
QuestionHow to add Windows firewall exception without admin privileges Pin
srikrishnathanthri26-Mar-16 2:31
srikrishnathanthri26-Mar-16 2:31 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
OriginalGriff26-Mar-16 3:06
mveOriginalGriff26-Mar-16 3:06 
GeneralRe: How to add Windows firewall exception without admin privileges Pin
srikrishnathanthri27-Mar-16 18:57
srikrishnathanthri27-Mar-16 18:57 
GeneralRe: How to add Windows firewall exception without admin privileges Pin
Bernhard Hiller28-Mar-16 23:52
Bernhard Hiller28-Mar-16 23:52 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
Dave Kreskowiak26-Mar-16 5:14
mveDave Kreskowiak26-Mar-16 5:14 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
Patrice T27-Mar-16 11:11
mvePatrice T27-Mar-16 11:11 
QuestionHow display the file name in the right menu? Pin
youlu24-Mar-16 22:57
youlu24-Mar-16 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.