This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Need help with this Random OO

 
Andres John
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator

already modify the code as the prof ask but still can't solves this k tour problem for an 8 by 8 board by randomly picking a move from 0 to 7 and try to do this 100 time if the move is not legal after 100 it will abort the games and if i make 64 moves then i could print the board
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Is this different than your other thread?

http://www.coderanch.com/t/594785/java/java/make-java-code-Random-OO
 
Andres John
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Jeff Verdegan wrote:Is this different than your other thread?

http://www.coderanch.com/t/594785/java/java/make-java-code-Random-OO
yes it is i just modify the start method to use random number
 
Campbell Ritchie
Sheriff
Pie
Posts: 47280
52
  • 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
Not convinced that is enough to warrant a new thread.
Please continue all discussion here.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic