Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
74 views

Runtime error when counting the number of diagonals Queen can attack from a specific position on chessboard in java [closed]

I have an n*n chessboard, where 0<n<=100000. The queen can be placed anywhere on the board. Is there a method/formula to calculate the number of diagonals the queen can visit from the specified ...
Smit Patel's user avatar
2 votes
1 answer
10k views

Java 2D Array for chess board not working

i'm trying to make a simple chess board with Strings as my chess pieces in a 8x8 2D Array. But the output is not what I want, as the Array just goes down. (Sorry for my language. I'm not so good at ...
Nikolaj Egholk Jakobsen's user avatar
2 votes
1 answer
633 views

ActionScript 3 - 2D array for a chessboard

I'm designing a chess game in ActionScript 3 using Flash Professional CC. I've created a chessboard using the IDE and placed pieces in their initial positions. Each tile has its own instance and is ...
Manpreet's user avatar
  • 173