All Questions
10 questions
19votes
3answers
14kviews
TicTacToe logic in Java
I'm currently studying Java by myself. The book I'm using (while very good) lacks feedback (obviously). While trying to write this program, I found myself solving most of the problems I've ...
6votes
1answer
4kviews
Determining winner and winning hand in poker (holdem)
I wrote couple classes that calculate winner, winning hand and winning hands rank (straight, flush, fullhouse etc.). I searched for something similar, but only found posts where five cards are used, ...
30votes
7answers
29kviews
Basic OOP Poker - Deck, Cards and Hands
I decided it would be interesting to simulate a game of Poker. Baby steps at the moment, and eventually I'll attempt to turn it into a GUI. The code I have so far is very basic such as populating a ...
15votes
4answers
30kviews
First attempt at a Blackjack game
I am not happy with this code as I am sure there are better ways to do what I'm trying to achieve. I'm a beginner and I've used what I know to date to complete this. ...
11votes
2answers
2kviews
Playing "craps" for the win
No specific question here. I am beginning with Java and here is an exercise. The rules of game: You roll two dice. Each die has six faces, which contain one, two, three, four, five and six spots, ...
8votes
3answers
4kviews
Hangman game in Java
I'm hoping someone can look over my code and tell me if there is anything I can improve. I am not very experienced with Java. I am hoping for some feedback as to avoid developing any bad habits which ...
4votes
1answer
2kviews
Second attempt at a Blackjack game
I posted yesterday about my first attempt at a Blackjack game. After I received much helpful advice I tried my best to fix up my code. I was wondering what you would think about round two! Edit: I ...
4votes
3answers
1kviews
Number Guessing Game in Java
This is my implementation of the famous Number Guessing Game. It is not object oriented, but the goal was to create a simple to read, procedural program. Have I accomplished this goal? ...
4votes
3answers
7kviews
Simple spin game
I see many many programs that are written out of the main method. But most of my programs are written in main() and access some ...
2votes
2answers
407views
Playing “craps” for the win v0.2
Continued from Playing "craps" for the win You roll two dice. Each die has six faces, which contain one, two, three, four, five and six spots, respectively. After the dice have come to ...