Skip to content
Snippets Groups Projects

Created HandOfCards class, created method to check for flush

Merged Steven Ha requested to merge master into main
1 file
+ 19
0
Compare changes
  • Side-by-side
  • Inline
 
package edu.ntnu.idatt2003;
 
 
import java.util.List;
 
 
public class HandOfCards {
 
private List<PlayingCard> hand;
 
 
public HandOfCards(List<PlayingCard> hand) {
 
this.hand = hand;
 
}
 
 
public boolean isFlush() {
 
if (hand.size() < 5) {
 
return false;
 
}
 
 
return false;
 
}
 
}
Loading