ya Javadan ödevim var ve pek iyi degilim. Cok basit bir program yapılması gerekiyor: Assagiya copy paste yapıcam: Yrn aksama kadar birisi yapabilirse cok minnettar olucam. Reversi-based One-Person Puzzle Program Declare the puzzle board as a two-dimensional 3x3 array of characters but the value in each cell is one of two characters . Initialize the puzzle board to the first character e. g. all O; we shall call this the target position. The computer should display the initial board in square form, perhaps using printable characters to simulate border lines (as in tic-tac-toe example in chapter 1), and again after each move. At each move, choose one of the cells (input two coordinates, or label from 1 to 9 and convert within program), and change the value to the opposite character in that cell and in every other cell in the same row and column (a total of 5 cells). After three or four such moves in different cells it may be hard to see how to restore the original situation, but if you made the moves you can play them in reverse order. You can present the situation to a friend and ask them to find the moves back to the original situation, counting them as a check. The program should recognize that they have returned to the target position. In an improved version for bonus points, let the computer generate a few random moves from the target position. See whether you can solve your own puzzle. Yapabilecek varmı?

zokkie' Alıntı:

bence zor yapabilecek birinin çıkmasını, hemde teşekkür karşılığı?

Java yok ama, C++ ile yapılmış bir ödev var. Mantığını kavrayabilirsen Java'ya uyarlaman pek bi zamanını almaz.. Kod: