All things are lawful, but not all things are profitable.
There are three kinds of actuaries: those who can count, and those who can't.
Lee High wrote:Hello all, I am sorry to create such a dilemma. I am new at this and am trying to build my knowledge, and create better code. We have all started somewhere in our training and hopefully I will become as good as your guys in the future. Thank you again for all your help and guidance.
Liutauras Vilda wrote:Also it involves puzzling parts which even experienced developers could easily slip on it. I have in mind turn++ % == 0
Lee High wrote:That information is so helpful, I do find it some what difficult to choice the correct name. I'm going to relook at my code and utilize this information thank you again.
Liutauras Vilda wrote:
Lee, I don't get at all, why there are so many different marks? Shouldn't be just 3 of those? Nevermind probably.
Lee High wrote:
One more thing. I'm not sure I'd have players as enum. Players in some sense interacting with game, or more precicely they are playing the game. To have them just simply as constants which do nothing seems like not much beneficial. Who does the move or marking, computer or player? If player, maybe you need a Player class too?
Stephan van Hulst wrote:Or:
Stephan wrote:
JavaDocs wrote:ifPresent(Consumer<? super T> consumer)
If a value is present, invoke the specified consumer with the value, otherwise do nothing.
JavaDocs wrote:ifPresent(Consumer<? super T> consumer)
If a value is present, invoke the specified consumer with the value, otherwise do nothing.
KotlinDocs wrote:Safe calls are useful in chains. For example, if Bob, an Employee, may be assigned to a Department (or not), that in turn may have another Employee as a department head, then to obtain the name of Bob's department head (if any), we write the following:
bob?.department?.head?.name
Liutauras Vilda wrote:edit: probably not exactly similar whole idea. In particular ifPresent() probably plays similar role as in Kotlin null safety
There are three kinds of actuaries: those who can count, and those who can't.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |