Go Fish/Java: Difference between revisions

m
Fixed syntax highlighting.
No edit summary
m (Fixed syntax highlighting.)
 
Line 7:
As I say in the comments, this implementation was made possible by the JCF and Java's enums. I don't know how I could have done it without them.
 
<langsyntaxhighlight Javalang="java">import java.util.ArrayList; //Java's Collection Framework is really what is
import java.util.Scanner; //powering the whole game: don't underestimate it.
import java.util.Random;
Line 241:
return hand.get(GoFish.rng.nextInt(hand.size()));
}
}</langsyntaxhighlight>
9,476

edits