Give me way to understand .....My big assignment problem

Hip is a classic board game invented by Martin Gardner. Itís a 2 player game played on a 9x9 board. Players take turns placing a token on an unoccupied cell. The player who completes any square such that 4 corners are marked by his token loses. The square may be of any size and can be tilted at any angle. Here are a couple of game states that shows the players lose by completing a square.

The function nextMove takes in a character player and an 9x9 char board as an input and provides 2 integer positions row and column space separated as output. The board is 0-indexed.

I have understand game but getting confuse in input n output details...
Problem is how to show output,how to use -(ascii 45) or have to use two dimensional array but problem saying that you have to use singe array.

Anybody please give me right way to understand problem.Its a online assignment so no one whom i can discuss.So plz help me for understanding and solving this problem.

Re: Give me way to understand .....My big assignment problem

Originally Posted by codequicker@yahoo.com

will u plz help to solve this problem

Good correction, but by saying this I can only assume that you think that now that you created this forum thread, your work is done. If you want to be helped, you need to make it possible to BE helped. For me it is very unclear where you are getting stuck, so I can't really say anything that would help you not be stuck anymore. I am not going to fix or write any code for you, the only thing I am willing to do is help you so you can continue on your own again. Most people are the same as me (edit: I mean have the same opinion).

So. Step one: you have to understand the problem first, so you may properly explain it (or even solve it yourself based on your new understanding of it). Talk to the person who gave you this assignment.

Re: Give me way to understand .....My big assignment problem

No, YOU solve it. YOU want to do this. If you can't... yeah well that's bad luck, but then you clearly need to study and practice more with whatever language you're using which apparently is not Java if I believe the code in your original post. If someone else solves it for you, you do not gain anything here.

Re: Give me way to understand .....My big assignment problem

i M HERE TO ASK FEW IDEA ABOUT HOW TO DO THIS GAME CODING USING ARRAY...NOTHING MORE.....IF I HURT ANYBODY...I M ASKING FOR SORRY.IF U GUYS PRAISE ME THEN I WILL SURE WIN HACKERRANK COMPETITION.THANKYOU.

Re: Give me way to understand .....My big assignment problem

Originally Posted by codequicker@yahoo.com

i M HERE TO ASK FEW IDEA ABOUT HOW TO DO THIS GAME CODING USING ARRAY...NOTHING MORE.....IF I HURT ANYBODY...I M ASKING FOR SORRY.IF U GUYS PRAISE ME THEN I WILL SURE WIN HACKERRANK COMPETITION.THANKYOU.

Caps lock isn't going to get you very far.

If you want help, please read the link in my signature on asking questions the smart way.

Re: Give me way to understand .....My big assignment problem

Thanks for sharing this valuable information to me. Seriously i was unaware of all this.I bookmarked it n sure follow all rules.Thanks again all of you.Finally i have to say one thing is ...Love u all.