static - Checking symmetry in a grid with java -


I need help with a game:

The game is low, two players, 'B 'And' N 'is a grid of characters. Both players take a four (B or N depending on who they are) on the grid to move each time they place a place, I have to check whether There is a symmetry. for example. Different types of symmetric are horizontal and vertical in every 2 * 2, 3 * 3 and 4 * 4 squares, which were simply placed here. 3 * 3 In case of symmetry, the middle row or column are not in symmetry.

I have done everything till now except Simmithree. It is difficult for me to do something, I have an idea how to do it personally, None of you know how I can do symmetry in a system?

Java code for some, as you have described for the N-size grid, Will be:

  Boolean hashzynty symmetric (four [] [] grid, int n) {int across = n / 2; {Int right = 0 (int byte = 0; left and left  ++) for {i.e. i  

A similar type of thing will be required for the vertical symmetry function.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -