how to make this java code Random using OO?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Create an alternate KtR that solves knight's tour problem for an 8 by 8 board by randomly picking a move from 0 to 7 and if legal make the move. If not legal, try doing this 100 times and if no legal moves after 100 tries abort the game as a failure.
If you make 64 moves print the board.
i modify the the start method instead of giving the number in sequence it will random some the sequence number, but other two questions im not sure about it
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
My guess is you won't get much help with a post like that. You may want to take a few minutes and read our HowToAskQuestionsOnJavaRanch FAQ. Generally speaking, broad questions don't get near the help of specific, focused questions.
Your post basically reads as "Please do my homework for me", which most folks find off-putting - especially with over 200 lines of code. Kudos on using code tags on your first post - that does help a LOT, but I think your question is a little broad.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
fred rosenberger wrote:Hello and welcome to the ranch.
My guess is you won't get much help with a post like that. You may want to take a few minutes and read our HowToAskQuestionsOnJavaRanch FAQ. Generally speaking, broad questions don't get near the help of specific, focused questions.
Your post basically reads as "Please do my homework for me", which most folks find off-putting - especially with over 200 lines of code. Kudos on using code tags on your first post - that does help a LOT, but I think your question is a little broad.
i already what it said in HowToAskQuestionsOnJavaRanch thank for the link
it my first time using the this link
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Andres John wrote:i already what it said in HowToAskQuestionsOnJavaRanch thank for the link
it my first time using the this link
I understand that you are new. I'm trying to help you get a better experience here. I'm trying to give you hints on what you can do to get the help you need. Folks here will give you an AMAZING amount of help...but only if you make it possible for them to do so.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
At least lay out how you would attempt to code this by designing on paper or at least in your head!
WP
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
that what i'm trying to do, so i just think what the prof mean by this kind of question, and this is a knight's out which a complex problem, yet require a lot of thinking and algorithmWilliam P O'Sullivan wrote:If this is a school or educational assignment, no one will do it for you.
At least lay out how you would attempt to code this by designing on paper or at least in your head!
WP
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Andres John wrote:the prof is asking me to do this
Create an alternate KtR that solves knight's tour problem for an 8 by 8 board by randomly picking a move from 0 to 7 and if legal make the move. If not legal, try doing this 100 times and if no legal moves after 100 tries abort the game as a failure.
If you make 64 moves print the board.
i modify the the start method instead of giving the number in sequence it will random some the sequence number, but other two questions im not sure about it
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
can't get the ideas of t 64 move
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
here it the final result now it over, game over Happy !!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Andres John wrote:I will end this boring and hard java program that nobody could help me :C
There are plenty of people here who could have helped you. You just didn't ask a clear question that would have made it easy for people to understand what your problem is.
| He does not suffer fools gladly. But this tiny ad does: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |











